diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2020-04-10 23:58:00 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2020-04-10 23:58:00 +0200 |
commit | 5277e8b28bbe77d77986848af4b21c619473bb11 (patch) | |
tree | be574e6becdff3a0eb99ade8c34dcde6637983fb | |
parent | dbdaeb5134dbea5ef837866dfb2dc7a57ca6cbc3 (diff) |
Height, not width
-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 { |