mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Reset game.pausescript in hardreset()
This fixes an issue where you could softlock the game if you exited playtesting mode by pressing Esc while a "- Press ACTION to advance text -" prompt was onscreen, then re-entered playtesting and then started any script. The "- Press ACTION to advance text -" prompt is most directly controlled by game.advancetext, but when it appears game.pausescript is usually set as well. You need to have both variables on at the same time in order to press ACTION. If only advancetext is on, then you won't be able to flip but can still move around, but if only pausescript is on, then the game softlocks because the only way you can turn pausescript off is by pressing ACTION, but the game will only let you press ACTION if *both* advancetext and pausescript are on.
This commit is contained in:
parent
90cab340f1
commit
bff9b850b7
1 changed files with 2 additions and 0 deletions
|
@ -3496,6 +3496,8 @@ void scriptclass::hardreset( KeyPoll& key, Graphics& dwgfx, Game& game,mapclass&
|
|||
game.hascontrol = true;
|
||||
game.advancetext = false;
|
||||
|
||||
game.pausescript = false;
|
||||
|
||||
//dwgraphicsclass
|
||||
dwgfx.backgrounddrawn = false;
|
||||
dwgfx.textboxremovefast();
|
||||
|
|
Loading…
Reference in a new issue