forked from jaildesigner-jailgames/jaildoctors_dilemma
Afegit Cheevos::clearUnobtainableState();
This commit is contained in:
@@ -55,6 +55,7 @@ Game::Game()
|
||||
changeRoom(current_room_);
|
||||
|
||||
Cheevos::get()->enable(!options.cheats.enabled()); // Deshabilita los logros si hay trucos activados
|
||||
Cheevos::get()->clearUnobtainableState();
|
||||
|
||||
options.section.section = Section::GAME;
|
||||
options.section.subsection = Subsection::NONE;
|
||||
@@ -392,7 +393,7 @@ void Game::killPlayer()
|
||||
stats_->addDeath(room_->getName());
|
||||
|
||||
// Invalida el logro de pasarse el juego sin morir
|
||||
Cheevos::get()->invalidate(11);
|
||||
Cheevos::get()->setUnobtainable(11);
|
||||
|
||||
// Sonido
|
||||
JA_PlaySound(Resource::get()->getSound("death.wav"));
|
||||
@@ -530,7 +531,7 @@ void Game::checkRestoringJail()
|
||||
const bool haveTheItems = board_->items >= int(total_items_ * 0.9f);
|
||||
if (!haveTheItems)
|
||||
{
|
||||
Cheevos::get()->invalidate(9);
|
||||
Cheevos::get()->setUnobtainable(9);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user