summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-04-10 23:58:00 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-04-10 23:58:00 +0200
commit5277e8b28bbe77d77986848af4b21c619473bb11 (patch)
treebe574e6becdff3a0eb99ade8c34dcde6637983fb
parentdbdaeb5134dbea5ef837866dfb2dc7a57ca6cbc3 (diff)
Height, not width
-rw-r--r--src/state.rs2
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 {