From be472fa4b3020001b1ffb1135a80dde1d9d5c14d Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 6 Oct 2021 13:38:24 +0200 Subject: [PATCH] Slide driven development --- lib/include/InputState.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/include/InputState.hpp b/lib/include/InputState.hpp index 6c6e409..a5ec8e4 100644 --- a/lib/include/InputState.hpp +++ b/lib/include/InputState.hpp @@ -12,14 +12,14 @@ public: bool enableAI = false; Direction direction() const { - if (left) - return Direction::LEFT; - if (right) - return Direction::RIGHT; if (up) return Direction::UP; if (down) return Direction::DOWN; + if (left) + return Direction::LEFT; + if (right) + return Direction::RIGHT; return Direction::NONE; } };