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

gamemode(teleporter): Set gamestate to GAMEMODE

This makes it so gamemode(teleporter) will always do an animation, even
if the game is already in TELEPORTERMODE.

I used this script to test:

    gamemode(teleporter)
    delay(5)
    gamemode(teleporter)
    delay(5)
    gamemode(teleporter)

In 2.2, this script starts the map menu bringing-up animation three
times.

In previous 2.3, this script starts the map menu bringing-up animation
once, but then the next gamemode(teleporter) immediately finishes the
animation, and the third gamemode(teleporter) does nothing.

This commit restores it to 2.2 behavior.
This commit is contained in:
Misa 2021-09-02 12:23:17 -07:00
parent 5b10164659
commit e30fc4500e

View file

@ -1115,6 +1115,7 @@ void scriptclass::run(void)
{ {
if (words[1] == "teleporter") if (words[1] == "teleporter")
{ {
game.gamestate = GAMEMODE; /* to set prevgamestate */
game.mapmenuchange(TELEPORTERMODE, false); game.mapmenuchange(TELEPORTERMODE, false);
game.useteleporter = false; //good heavens don't actually use it game.useteleporter = false; //good heavens don't actually use it