1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02: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:
Info Teddy 2020-01-22 16:16:27 -08:00 committed by Ethan Lee
parent 90cab340f1
commit bff9b850b7

View File

@ -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();