mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -377,10 +377,7 @@ void menuactionpress()
|
||||
music.playef(11);
|
||||
if (game.ingame_titlemode)
|
||||
{
|
||||
game.ingame_titlemode = false;
|
||||
game.returntomenu(game.kludge_ingametemp);
|
||||
game.gamestate = MAPMODE;
|
||||
map.kludge_to_bg();
|
||||
game.returntopausemenu();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -593,10 +590,7 @@ void menuactionpress()
|
||||
music.playef(11);
|
||||
if (game.ingame_titlemode)
|
||||
{
|
||||
game.ingame_titlemode = false;
|
||||
game.returntomenu(game.kludge_ingametemp);
|
||||
game.gamestate = MAPMODE;
|
||||
map.kludge_to_bg();
|
||||
game.returntopausemenu();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user