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)
|
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 };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user