1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

Remove unnecessary 'game.' qualifiers in Game.cpp

No need to refer to the class global name if we're already in the class
itself.
This commit is contained in:
Misa 2020-04-26 13:14:52 -07:00 committed by Ethan Lee
parent 85f851bc17
commit 047d71840b

View File

@ -1357,7 +1357,7 @@ void Game::updatestate()
{
returntomenu(Menu::levellist);
}
else if (game.telesummary != "" || game.quicksummary != "" || anything_unlocked())
else if (telesummary != "" || quicksummary != "" || anything_unlocked())
{
returntomenu(Menu::play);
}
@ -7036,7 +7036,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
//ok, secret lab! no notification, but test:
if (unlock[8])
{
option("secret lab", !map.invincibility && game.slowdown == 30);
option("secret lab", !map.invincibility && slowdown == 30);
}
option("play modes");
if (telesummary != "" || quicksummary != "")
@ -7074,9 +7074,9 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
menuyoff = 64;
break;
case Menu::playmodes:
option("time trials", !map.invincibility && game.slowdown == 30);
option("time trials", !map.invincibility && slowdown == 30);
option("intermissions", unlock[16]);
option("no death mode", unlock[17] && !map.invincibility && game.slowdown == 30);
option("no death mode", unlock[17] && !map.invincibility && slowdown == 30);
option("flip mode", unlock[18]);
option("return to play menu");
menuxoff = -70;