Fixed load order for saves

- Make sure the PRNG tables are restored after the base level is loaded,
otherwise the tables will restore in a modified state.
This commit is contained in:
Edward Richardson 2016-01-20 19:14:43 +13:00
parent 9b9008ecc7
commit 5c8ebf487d

View file

@ -1930,9 +1930,6 @@ void G_DoLoadGame ()
} }
G_ReadSnapshots (png); G_ReadSnapshots (png);
STAT_Read(png);
FRandom::StaticReadRNGState (png);
P_ReadACSDefereds (png);
// load a base level // load a base level
savegamerestore = true; // Use the player actors in the savegame savegamerestore = true; // Use the player actors in the savegame
@ -1942,6 +1939,9 @@ void G_DoLoadGame ()
delete[] map; delete[] map;
savegamerestore = false; savegamerestore = false;
STAT_Read(png);
FRandom::StaticReadRNGState(png);
P_ReadACSDefereds(png);
P_ReadACSVars(png); P_ReadACSVars(png);
NextSkill = -1; NextSkill = -1;