1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Remove dialogue and cutscene bars if disabling completestop

This fixes a bug where the trinket collection text boxes, along with the
cutscene bars, would stay on-screen if the player warped to the ship
while they were up.

This only happens during the gamestate 0 anti-softlock checks, and only
if completestop is active in the first place, so text boxes aren't
cleared if the player is doing something that wouldn't lead to a
softlock otherise.

Fixes #921.
This commit is contained in:
Misa 2023-03-19 13:48:01 -07:00
parent 88d49547d4
commit 2dc7f0b5e8

View file

@ -805,6 +805,12 @@ void Game::updatestate(void)
}
else
{
if (completestop)
{
/* Close potential collection dialogue if warping to ship */
graphics.textboxremove();
graphics.showcutscenebars = false;
}
/* Prevent softlocks if there's no cutscene running right now */
hascontrol = true;
completestop = false;