diff options
-rw-r--r-- | src/state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.rs b/src/state.rs index ac25f0d..8d2bb50 100644 --- a/src/state.rs +++ b/src/state.rs @@ -128,7 +128,7 @@ impl GameState { if player.position.y > 0 { result.push(Command::TurnLeft); } - if player.position.y < WIDTH { + if player.position.y < HEIGHT { result.push(Command::TurnRight); } if player.boosts > 0 { |