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)
{
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 };
}