some go fmt
This commit is contained in:
parent
f86bacbd69
commit
d00e2a8df8
4
robot.go
4
robot.go
@ -278,13 +278,13 @@ func (r *Robot) Tick(g *Game) {
|
|||||||
r.TargetSpeed = r.Stats.Speed
|
r.TargetSpeed = r.Stats.Speed
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.TargetSpeed < -0.25 * r.Stats.Speed {
|
if r.TargetSpeed < -0.25*r.Stats.Speed {
|
||||||
r.TargetSpeed = -0.25 * r.Stats.Speed
|
r.TargetSpeed = -0.25 * r.Stats.Speed
|
||||||
}
|
}
|
||||||
|
|
||||||
// Are we speeding up or slowing down?
|
// Are we speeding up or slowing down?
|
||||||
increase := true
|
increase := true
|
||||||
if r.Speed - r.TargetSpeed > v.Epsilon {
|
if r.Speed-r.TargetSpeed > v.Epsilon {
|
||||||
increase = false
|
increase = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user