Changed the order in Point2::getCardinalDirection() to match static member order

This commit is contained in:
Stefan Müller 2025-06-05 23:32:44 +02:00
parent 60798118ea
commit ab26563e34

View File

@ -33,14 +33,14 @@ Point2 Point2::getCardinalDirection(const char directionChar)
{ {
switch (directionChar) switch (directionChar)
{ {
case 'v' : case '<' :
return Point2::down; return Point2::left;
case '>' : case '>' :
return Point2::right; return Point2::right;
case '^' : case '^' :
return Point2::up; return Point2::up;
case '<' : case 'v' :
return Point2::left; return Point2::down;
default : default :
return { 0, 0 }; return { 0, 0 };
} }