mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Factor out Secret Lab/Time Trial/NDM conds to function
They are now factored out to an inline function named incompetitive(). This is so their usage can be changed without having to change each individual one in every place. This also clarifies the intent of using these conditionals (they are for when we're in a "competitive" mode).
This commit is contained in:
@@ -636,7 +636,7 @@ static void menuactionpress(void)
|
||||
#endif
|
||||
if (game.currentmenuoption == accessibilityoffset + 0) {
|
||||
//invincibility
|
||||
if (!game.ingame_titlemode || (!game.insecretlab && !game.intimetrial && !game.nodeathmode))
|
||||
if (!game.ingame_titlemode || !game.incompetitive())
|
||||
{
|
||||
if (!map.invincibility)
|
||||
{
|
||||
@@ -658,7 +658,7 @@ static void menuactionpress(void)
|
||||
}
|
||||
else if (game.currentmenuoption == accessibilityoffset + 1) {
|
||||
//change game speed
|
||||
if (!game.ingame_titlemode || (!game.insecretlab && !game.intimetrial && !game.nodeathmode))
|
||||
if (!game.ingame_titlemode || !game.incompetitive())
|
||||
{
|
||||
game.createmenu(Menu::setslowdown);
|
||||
map.nexttowercolour();
|
||||
|
||||
Reference in New Issue
Block a user