support setting heading in instructions

This commit is contained in:
Fraser Graham
2013-11-11 21:36:11 -08:00
parent 3f40fe4603
commit c7d5e4be87
3 changed files with 39 additions and 27 deletions
+3
View File
@@ -69,6 +69,9 @@ func (p *player) recv() {
if msg.MoveTo != nil {
r.MoveTo = msg.MoveTo
}
if msg.Heading != nil {
r.DesiredHeading = msg.Heading
}
if msg.FireAt != nil {
r.FireAt = msg.FireAt
}