mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Prevent turning on invincibility/slowdown in in-game options menu
Would've been the easiest exploit ever! But I gotta patch it.
This commit is contained in:
parent
a476121432
commit
caa4f0f5c9
2 changed files with 26 additions and 10 deletions
|
@ -7147,8 +7147,8 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
option("animated backgrounds");
|
||||
option("screen effects");
|
||||
option("text outline");
|
||||
option("invincibility");
|
||||
option("slowdown");
|
||||
option("invincibility", !ingame_titlemode || !inspecial());
|
||||
option("slowdown", !ingame_titlemode || !inspecial());
|
||||
option("load screen");
|
||||
option("room name bg");
|
||||
option("return");
|
||||
|
|
|
@ -493,22 +493,38 @@ void menuactionpress()
|
|||
break;
|
||||
case 3:
|
||||
//invincibility
|
||||
if (!map.invincibility)
|
||||
if (!game.ingame_titlemode || !game.inspecial())
|
||||
{
|
||||
game.createmenu(Menu::setinvincibility);
|
||||
map.nexttowercolour();
|
||||
if (!map.invincibility)
|
||||
{
|
||||
game.createmenu(Menu::setinvincibility);
|
||||
map.nexttowercolour();
|
||||
}
|
||||
else
|
||||
{
|
||||
map.invincibility = !map.invincibility;
|
||||
}
|
||||
music.playef(11);
|
||||
}
|
||||
else
|
||||
{
|
||||
map.invincibility = !map.invincibility;
|
||||
music.playef(2);
|
||||
map.invincibility = false;
|
||||
}
|
||||
music.playef(11);
|
||||
break;
|
||||
case 4:
|
||||
//change game speed
|
||||
game.createmenu(Menu::setslowdown);
|
||||
map.nexttowercolour();
|
||||
music.playef(11);
|
||||
if (!game.inspecial())
|
||||
{
|
||||
game.createmenu(Menu::setslowdown);
|
||||
map.nexttowercolour();
|
||||
music.playef(11);
|
||||
}
|
||||
else
|
||||
{
|
||||
music.playef(2);
|
||||
game.gameframerate = 34;
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
// toggle fake load screen
|
||||
|
|
Loading…
Reference in a new issue