From 9a009d245b0d6bd74ebe095053120354fbcbeef1 Mon Sep 17 00:00:00 2001 From: Dylan Benzi <39111894+dylanbenzi@users.noreply.github.com> Date: Mon, 17 Nov 2025 13:13:15 -0500 Subject: [PATCH] Update Game.cpp --- src/Game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: