From 5007bea835d9f8184ae5310810f0beae5804d15d Mon Sep 17 00:00:00 2001 From: Sergio Valor Martinez Date: Mon, 9 Jan 2023 09:21:22 +0100 Subject: [PATCH] =?UTF-8?q?Se=20hab=C3=ADa=20quedado=20una=20linea=20comen?= =?UTF-8?q?tada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)