mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14: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:
@@ -2365,13 +2365,6 @@ void scriptclass::run(void)
|
||||
}
|
||||
}
|
||||
|
||||
void scriptclass::resetgametomenu(void)
|
||||
{
|
||||
obj.entities.clear();
|
||||
game.quittomenu();
|
||||
game.createmenu(Menu::gameover);
|
||||
}
|
||||
|
||||
static void gotoerrorloadinglevel(void)
|
||||
{
|
||||
game.createmenu(Menu::errorloadinglevel);
|
||||
|
||||
Reference in New Issue
Block a user