Changed the order in Point2::getCardinalDirection() to match static member order
This commit is contained in:
parent
60798118ea
commit
ab26563e34
@ -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 };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user