mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
Make pressing Esc in ingame_titlemode go back to pause menu
You shouldn't be able to bring up the youwannaquit menu while you're in-game, that should only be when you're actually not in game.
This commit is contained in:
parent
aa40eb6327
commit
a476121432
1 changed files with 9 additions and 2 deletions
|
@ -1468,9 +1468,16 @@ void titleinput()
|
||||||
if (key.isDown(27) && game.currentmenuname != Menu::youwannaquit && game.menustart)
|
if (key.isDown(27) && game.currentmenuname != Menu::youwannaquit && game.menustart)
|
||||||
{
|
{
|
||||||
music.playef(11);
|
music.playef(11);
|
||||||
|
if (game.ingame_titlemode)
|
||||||
|
{
|
||||||
|
game.returntopausemenu();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
game.createmenu(Menu::youwannaquit);
|
game.createmenu(Menu::youwannaquit);
|
||||||
map.nexttowercolour();
|
map.nexttowercolour();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(game.menustart)
|
if(game.menustart)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue