mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Remove advancetext check from teleporter prompt logic
This fixes being unable to use teleporters while the "- Press ACTION to
advance text -" prompt is up, which is used to perform credits warp.
In 2.2 and 2.0, this advancetext check was only in gamerender() for
rendering the "- Press ENTER to Teleport -" prompt and didn't affect any
logic. In 2.3, I moved the check (and the rest of the conditional it was
in) to gamelogic() - same as the activity zone prompt conditionals - so
if you gained control while being in a prompt zone, the prompt wouldn't
suddenly appear[1].
As a side effect, this ended up aligning rendering and logic together,
so if you couldn't see the teleporter prompt, you weren't able to
teleport - whereas in 2.2 and 2.0, you could still use the teleporter
even though the prompt wasn't up.
So by removing the advancetext check, you are now able to use the
teleporter again, AND the "- Press ENTER to Teleport -" prompt will also
show up as well.
Habeechee reported this regression on the VVVVVV speedrunning Discord
server.
[1]: f07a8d2143
, PR #421
This commit is contained in:
parent
cd2f5ccde9
commit
4b3409e2e8
1 changed files with 1 additions and 1 deletions
|
@ -1554,7 +1554,7 @@ void gamelogic(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
game.oldreadytotele = game.readytotele;
|
game.oldreadytotele = game.readytotele;
|
||||||
if (game.activetele && !game.advancetext && game.hascontrol && !script.running && !game.intimetrial)
|
if (game.activetele && game.hascontrol && !script.running && !game.intimetrial)
|
||||||
{
|
{
|
||||||
int i = obj.getplayer();
|
int i = obj.getplayer();
|
||||||
SDL_Rect temprect = SDL_Rect();
|
SDL_Rect temprect = SDL_Rect();
|
||||||
|
|
Loading…
Reference in a new issue