mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-24 18: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:
parent
82971296c2
commit
a59e9d51db
1 changed files with 1 additions and 0 deletions
|
@ -1349,6 +1349,7 @@ void scriptclass::run(void)
|
|||
{
|
||||
if (words[1] == "teleporter")
|
||||
{
|
||||
game.gamestate = GAMEMODE; /* to set prevgamestate */
|
||||
game.mapmenuchange(TELEPORTERMODE, false);
|
||||
|
||||
game.useteleporter = false; //good heavens don't actually use it
|
||||
|
|
Loading…
Reference in a new issue