diff options
Diffstat (limited to 'Game.cpp')
-rw-r--r-- | Game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,9 +62,9 @@ void Game::updateGame(uint timeElapsedMs) { cell.setState(BOOM);
if (cell.getState() % 2 == 0) { // it's a player itself
(getPlayerByID(cell.getState()/2)).kill();
- }
+ } // FIXME: we don't kill the player if he moved before us, i.e. treat his wall just like anything else
} else {
- cell.setState(player.getNumber()*2+1);
+ cell.setState(player.getNumber()*2+1); // FIXME: set it as player himself if it's the last element of the path, and set old player position as wall
}
} catch (std::exception out_of_bounds) { // doesn't that catch just any exception and name it out_of_bounds?
player.kill(); // set the cell before as boom?
|