From ab26563e34ebf0f8a18b0e7c99a1cc936cfff478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Thu, 5 Jun 2025 23:32:44 +0200 Subject: [PATCH] Changed the order in Point2::getCardinalDirection() to match static member order --- src/common/Point2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/Point2.cpp b/src/common/Point2.cpp index e01d31b..c7d8808 100644 --- a/src/common/Point2.cpp +++ b/src/common/Point2.cpp @@ -33,14 +33,14 @@ Point2 Point2::getCardinalDirection(const char directionChar) { switch (directionChar) { - case 'v' : - return Point2::down; + case '<' : + return Point2::left; case '>' : return Point2::right; case '^' : return Point2::up; - case '<' : - return Point2::left; + case 'v' : + return Point2::down; default : return { 0, 0 }; }