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)
{
unlockAchievement("vvvvvvmaster"); //bloody hell
@@ -3040,6 +3039,8 @@ void Game::updatestate(void)
setstatedelay(120);
incstate();
}
savestatsandsettings();
break;
case 3511:
{