stray pointer conversion
This commit is contained in:
parent
325a5c0f57
commit
64477f5e47
@ -56,7 +56,7 @@ func (p *player) recv() {
|
||||
}
|
||||
|
||||
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.Y = newPos.Y
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user