fix: no guardar el fitxer de puntuacions en el modo demo
This commit is contained in:
@@ -92,8 +92,11 @@ Game::Game(int player_id, int current_stage, bool demo)
|
||||
Game::~Game()
|
||||
{
|
||||
// Guarda las puntuaciones en un fichero
|
||||
auto manager = std::make_unique<ManageHiScoreTable>(&options.game.hi_score_table);
|
||||
manager->saveToFile(asset_->get("score.bin"));
|
||||
if (!demo_.enabled)
|
||||
{
|
||||
auto manager = std::make_unique<ManageHiScoreTable>(&options.game.hi_score_table);
|
||||
manager->saveToFile(asset_->get("score.bin"));
|
||||
}
|
||||
#ifdef RECORDING
|
||||
saveDemoFile(asset->get("demo1.bin"));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user