- SW: implement the "end game" function.

Fixes #189
This commit is contained in:
Christoph Oelckers 2020-08-17 20:38:46 +02:00
parent 17f9bc8a8a
commit 522d8af6ca
2 changed files with 10 additions and 0 deletions

View file

@ -145,6 +145,15 @@ void GameInterface::DrawNativeMenuText(int fontnum, int state, double xpos, doub
}
}
void GameInterface::QuitToTitle()
{
TerminateLevel();
currentLevel = nullptr;
M_StartControlPanel(false);
M_SetMenu(NAME_Mainmenu);
gamestate = GS_MENUSCREEN;
}
void GameInterface::MenuOpened()
{

View file

@ -2379,6 +2379,7 @@ struct GameInterface : ::GameInterface
FString GetCoordString() override;
ReservedSpace GetReservedScreenSpace(int viewsize) override;
void clearlocalinputstate() override;
void QuitToTitle() override;
FString statFPS() override;
GameStats getStats() override;