From 5277e8b28bbe77d77986848af4b21c619473bb11 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Fri, 10 Apr 2020 23:58:00 +0200 Subject: Height, not width --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3