Skip to content

Commit

Permalink
[common] fix 'and' to '&&'
Browse files Browse the repository at this point in the history
  • Loading branch information
vagra committed Mar 27, 2023
1 parent a079969 commit e641413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ bool Actor::atFront(const Actor* other) const {
case 2:
return dx > abs(dy);
case 3:
return dx > 0 and dy < 0;
return dx > 0 && dy < 0;
case 4:
return -dy > abs(dx);
case 5:
return dx < 0 and dy < 0;
return dx < 0 && dy < 0;
case 6:
return -dx > abs(dy);
case 7:
return dx < 0 and dy > 0;
return dx < 0 && dy > 0;
default:
return false;
}
Expand Down

0 comments on commit e641413

Please sign in to comment.