1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +02: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 //Main Menu Variables
std::vector<MenuOption> menuoptions; std::vector<MenuOption> menuoptions;
int currentmenuoption ; int currentmenuoption ;
enum Menu::MenuName currentmenuname, previousmenuname; enum Menu::MenuName currentmenuname;
int current_credits_list_index; int current_credits_list_index;
int menuxoff, menuyoff; int menuxoff, menuyoff;
std::vector<MenuStackFrame> menustack; std::vector<MenuStackFrame> menustack;

View File

@ -1284,7 +1284,6 @@ 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);
game.previousmenuname = game.currentmenuname;
game.createmenu(Menu::youwannaquit); game.createmenu(Menu::youwannaquit);
map.nexttowercolour(); map.nexttowercolour();
} }