1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Remove now-unused variable Game::previousmenuname

This used to be used for Menu::youwannaquit, but now it uses the same
stack frame system as everything else, so it's gone unused now.
This commit is contained in:
Misa 2020-04-16 20:09:22 -07:00 committed by Ethan Lee
parent 2bb64198fe
commit 637a9d5665
2 changed files with 1 additions and 2 deletions

View file

@ -227,7 +227,7 @@ public:
//Main Menu Variables
std::vector<MenuOption> menuoptions;
int currentmenuoption ;
enum Menu::MenuName currentmenuname, previousmenuname;
enum Menu::MenuName currentmenuname;
int current_credits_list_index;
int menuxoff, menuyoff;
std::vector<MenuStackFrame> menustack;

View file

@ -1284,7 +1284,6 @@ void titleinput()
if (key.isDown(27) && game.currentmenuname != Menu::youwannaquit && game.menustart)
{
music.playef(11);
game.previousmenuname = game.currentmenuname;
game.createmenu(Menu::youwannaquit);
map.nexttowercolour();
}