Move returning to pause menu code to separate function

This code is getting a bit more complicated now, we should maybe stop
copy-pasting it everywhere.
This commit is contained in:
Misa
2020-06-22 17:26:45 -07:00
committed by Ethan Lee
parent 6582801dc9
commit aa40eb6327
3 changed files with 12 additions and 8 deletions

View File

@@ -7755,3 +7755,11 @@ void Game::returntoeditor()
map.scrolldir = 0;
}
#endif
void Game::returntopausemenu()
{
ingame_titlemode = false;
returntomenu(kludge_ingametemp);
gamestate = MAPMODE;
map.kludge_to_bg();
}