1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-09 10:29:45 +01:00

Fix softlock from interrupted completestop

In summary, if you got to gamestate 1002 or 1012 without an advancetext,
and you had completestop on, you were basically softlocked. So just add
those gamestates there and advance the gamestate if advancetext is off.
This commit is contained in:
Misa 2020-07-04 22:55:21 -07:00 committed by Ethan Lee
parent d06fadadf2
commit f28fcd78e8

View file

@ -2085,6 +2085,13 @@ void Game::updatestate()
} }
} }
break; break;
case 1002:
if (!advancetext)
{
// Prevent softlocks if we somehow don't have advancetext
state++;
}
break;
case 1003: case 1003:
graphics.textboxremove(); graphics.textboxremove();
hascontrol = true; hascontrol = true;
@ -2152,6 +2159,13 @@ void Game::updatestate()
graphics.textboxcenterx(); graphics.textboxcenterx();
} }
break; break;
case 1012:
if (!advancetext)
{
// Prevent softlocks if we somehow don't have advancetext
state++;
}
break;
case 1013: case 1013:
graphics.textboxremove(); graphics.textboxremove();
hascontrol = true; hascontrol = true;