el modo demo ya termina con un fundido

This commit is contained in:
2024-07-08 13:33:59 +02:00
parent 38272db851
commit d07fa46cb7
4 changed files with 19 additions and 3 deletions

View File

@@ -1552,7 +1552,9 @@ void Game::updatePlayers()
if (demo.enabled && !player->isAlive())
{
section->name = SECTION_PROG_HI_SCORE_TABLE;
fade->setType(FADE_RANDOM_SQUARE);
fade->activate();
//section->name = SECTION_PROG_HI_SCORE_TABLE;
}
}
}
@@ -2537,12 +2539,23 @@ void Game::update()
if (demo.counter < TOTAL_DEMO_DATA)
{
demo.counter++;
if (demo.counter == TOTAL_DEMO_DATA - 200)
{
fade->setType(FADE_RANDOM_SQUARE);
fade->activate();
}
}
else
{
section->name = SECTION_PROG_HI_SCORE_TABLE;
return;
}
if (fade->hasEnded())
{
section->name = SECTION_PROG_HI_SCORE_TABLE;
return;
}
}
#ifdef RECORDING