mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 08:26:59 +00:00
Update Game.cpp
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user