minor tweaks, including go fmt
This commit is contained in:
parent
d3c08a7953
commit
bc2d1cdd52
2
robot.go
2
robot.go
@ -283,7 +283,7 @@ func (r *Robot) Tick(g *game) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We only self repair when we're stopped
|
// We are only allowed to scan when we're stopped
|
||||||
if math.Abs(float64(r.Speed)) < v.Epsilon && r.ActiveScan {
|
if math.Abs(float64(r.Speed)) < v.Epsilon && r.ActiveScan {
|
||||||
r.ScanCounter += delta * float32(r.Stats.ScannerRadius) * 0.1
|
r.ScanCounter += delta * float32(r.Stats.ScannerRadius) * 0.1
|
||||||
} else if r.ScanCounter > 0 {
|
} else if r.ScanCounter > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user