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:
Misa
2022-12-29 15:47:03 -08:00
parent 593641ce82
commit 3758d61fe9
3 changed files with 3 additions and 10 deletions

View File

@@ -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);