1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-03-08 14:55:13 +01:00

Use setstate(n)/incstate()/setstatedelay(n) in localization changes

This mirrors PR .
This commit is contained in:
Dav999-v 2022-12-31 16:01:11 +01:00 committed by Misa Elizabeth Kai
parent 2b84384606
commit 2f770e9b5a

View file

@ -1499,7 +1499,7 @@ void Game::updatestate(void)
if (translator_exploring) if (translator_exploring)
{ {
translator_exploring_allowtele = true; translator_exploring_allowtele = true;
state = 0; setstate(0);
break; break;
} }
hascontrol = false; hascontrol = false;
@ -2323,7 +2323,7 @@ void Game::updatestate(void)
if (translator_exploring_allowtele) if (translator_exploring_allowtele)
{ {
state = 3090; setstate(3090);
} }
int i = obj.getplayer(); int i = obj.getplayer();
@ -2730,17 +2730,17 @@ void Game::updatestate(void)
supercrewmate = false; supercrewmate = false;
graphics.fademode = FADE_START_FADEOUT; graphics.fademode = FADE_START_FADEOUT;
music.fadeout(); music.fadeout();
state=3100; setstate(3100);
break; break;
case 3091: case 3091:
/* Different Final Level ending for translator_exploring */ /* Different Final Level ending for translator_exploring */
music.fadeout(); music.fadeout();
state++; incstate();
statedelay = 60; setstatedelay(60);
break; break;
case 3092: case 3092:
graphics.fademode = FADE_START_FADEOUT; graphics.fademode = FADE_START_FADEOUT;
state=3100; setstate(3100);
break; break;
case 3100: case 3100: