mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09: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:
parent
d06fadadf2
commit
f28fcd78e8
1 changed files with 14 additions and 0 deletions
|
@ -2085,6 +2085,13 @@ void Game::updatestate()
|
|||
}
|
||||
}
|
||||
break;
|
||||
case 1002:
|
||||
if (!advancetext)
|
||||
{
|
||||
// Prevent softlocks if we somehow don't have advancetext
|
||||
state++;
|
||||
}
|
||||
break;
|
||||
case 1003:
|
||||
graphics.textboxremove();
|
||||
hascontrol = true;
|
||||
|
@ -2152,6 +2159,13 @@ void Game::updatestate()
|
|||
graphics.textboxcenterx();
|
||||
}
|
||||
break;
|
||||
case 1012:
|
||||
if (!advancetext)
|
||||
{
|
||||
// Prevent softlocks if we somehow don't have advancetext
|
||||
state++;
|
||||
}
|
||||
break;
|
||||
case 1013:
|
||||
graphics.textboxremove();
|
||||
hascontrol = true;
|
||||
|
|
Loading…
Reference in a new issue