mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user