stray pointer conversion

This commit is contained in:
Stephen McQuay 2013-09-04 00:07:22 -07:00
parent 325a5c0f57
commit 64477f5e47

View File

@ -56,7 +56,7 @@ func (p *player) recv() {
} }
func (p *player) nudge() { func (p *player) nudge() {
newPos := v.Move(p.Robot.Position, p.Robot.MoveTo, p.Robot.Stats.Speed, delta) newPos := v.Move(p.Robot.Position, *p.Robot.MoveTo, p.Robot.Stats.Speed, delta)
p.Robot.Position.X = newPos.X p.Robot.Position.X = newPos.X
p.Robot.Position.Y = newPos.Y p.Robot.Position.Y = newPos.Y
} }