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

Call savestatsandsettings after unlocking MotU

This calls Game::savestatsandsettings() after unlocking Master of the
Universe (the achievement for completing No Death Mode), instead of
before.

This is not a big deal since Game::savestatsandsettings() is called
anyway whenever the game is gracefully closed since 2.3, but it helps to
make sure people won't lose their achievement data.
This commit is contained in:
Misa 2023-05-21 23:01:10 -07:00
parent 25b4361563
commit 7ff4949066

View file

@ -3027,7 +3027,6 @@ void Game::updatestate(void)
} }
savestatsandsettings();
if (nodeathmode) if (nodeathmode)
{ {
unlockAchievement("vvvvvvmaster"); //bloody hell unlockAchievement("vvvvvvmaster"); //bloody hell
@ -3040,6 +3039,8 @@ void Game::updatestate(void)
setstatedelay(120); setstatedelay(120);
incstate(); incstate();
} }
savestatsandsettings();
break; break;
case 3511: case 3511:
{ {