Update Game.cpp

This commit is contained in:
Dylan Benzi
2025-11-17 13:13:15 -05:00
committed by GitHub
parent 42f5322e2a
commit 9a009d245b
+2 -2
View File
@@ -459,8 +459,8 @@ void Game::run() {
map.handleTunnelWrapping(clyde); map.handleTunnelWrapping(clyde);
} }
if (map.hasPellet(currentPacmanTile.x, currentPacmanTile.y)) { if (map.hasPellet(currentPacmanTile)) {
map.eatPellet(currentPacmanTile.x, currentPacmanTile.y); map.eatPellet(currentPacmanTile);
switch (map.getPelletType(currentPacmanTile)) { switch (map.getPelletType(currentPacmanTile)) {
case PelletType::NONE: case PelletType::NONE: