mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +03:00
Axe scriptclass::resetgametomenu
This creates the game over screen for dying in No Death Mode. It's three lines long and it's only called once. There's no reason it has to be a separate function. From the name it sounds like it was meant to be a generic function but it's anything but that. So just inline it in to where it's called.
This commit is contained in:
@@ -464,7 +464,9 @@ void gamelogic(void)
|
||||
if (graphics.fademode == FADE_FULLY_BLACK)
|
||||
{
|
||||
game.copyndmresults();
|
||||
script.resetgametomenu();
|
||||
obj.entities.clear();
|
||||
game.quittomenu();
|
||||
game.createmenu(Menu::gameover);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user