Revert "There is no standardized interface to add an additional message to assert errors. A portable way to include one is to use a comma operator provided it has not been overloaded"
This reverts commit 32a27e986e
.
This commit is contained in:
parent
32a27e986e
commit
90f546f1b2
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ Position Inky::target(const GameState & gameState) const {
|
||||||
targetPosition.y += 2;
|
targetPosition.y += 2;
|
||||||
break;
|
break;
|
||||||
case Direction::NONE:
|
case Direction::NONE:
|
||||||
assert(("Pacman should be moving", false));
|
assert(false && "Pacman should be moving!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ Position Pinky::target(const GameState & gameState) const {
|
||||||
targetPosition.y += 4;
|
targetPosition.y += 4;
|
||||||
break;
|
break;
|
||||||
case Direction::NONE:
|
case Direction::NONE:
|
||||||
assert(("Pacman should be moving", false));
|
assert(false && "Pacman should be moving!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return gridPositionToPosition(targetPosition);
|
return gridPositionToPosition(targetPosition);
|
||||||
|
|
Loading…
Reference in a new issue