diff --git a/source/game.cpp b/source/game.cpp index 874931e..840e5ef 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -578,8 +578,7 @@ void Game::setScoreBoardColor() bool Game::checkEndGame() { const bool isOnTheRoom = room->getName() == "THE JAIL"; // Estar en la habitación que toca - //const bool haveTheItems = board.items >= int(totalItems * 0.9f) || options->cheat.jailEnabled; // Con mas del 90% de los items recogidos - const bool haveTheItems = board.items >= 0; + const bool haveTheItems = board.items >= int(totalItems * 0.9f) || options->cheat.jailEnabled; // Con mas del 90% de los items recogidos const bool isOnTheDoor = player->getRect().x <= 128; // Y en la ubicación que toca (En la puerta) if (haveTheItems)