diff --git a/src/Game.cpp b/src/Game.cpp index ae8a242..22a83b6 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -459,8 +459,8 @@ void Game::run() { map.handleTunnelWrapping(clyde); } - if (map.hasPellet(currentPacmanTile.x, currentPacmanTile.y)) { - map.eatPellet(currentPacmanTile.x, currentPacmanTile.y); + if (map.hasPellet(currentPacmanTile)) { + map.eatPellet(currentPacmanTile); switch (map.getPelletType(currentPacmanTile)) { case PelletType::NONE: