Implement sailing tests and fix into-the-wind bug
This commit is contained in:
parent
c89c5f6e74
commit
5d80cb2596
2 changed files with 79 additions and 1 deletions
|
@ -552,7 +552,7 @@ func (w *World) Tick() {
|
|||
}
|
||||
|
||||
// If we've incremented over the current move ticks on the rover, we can try and make the move
|
||||
if r.MoveTicks >= ticksToMove {
|
||||
if ticksToMove != 0 && r.MoveTicks >= ticksToMove {
|
||||
_, err := w.TryMoveRover(n, r.Bearing)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue