mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
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:
parent
9b9008ecc7
commit
5c8ebf487d
1 changed files with 3 additions and 3 deletions
|
@ -1930,9 +1930,6 @@ void G_DoLoadGame ()
|
|||
}
|
||||
|
||||
G_ReadSnapshots (png);
|
||||
STAT_Read(png);
|
||||
FRandom::StaticReadRNGState (png);
|
||||
P_ReadACSDefereds (png);
|
||||
|
||||
// load a base level
|
||||
savegamerestore = true; // Use the player actors in the savegame
|
||||
|
@ -1942,6 +1939,9 @@ void G_DoLoadGame ()
|
|||
delete[] map;
|
||||
savegamerestore = false;
|
||||
|
||||
STAT_Read(png);
|
||||
FRandom::StaticReadRNGState(png);
|
||||
P_ReadACSDefereds(png);
|
||||
P_ReadACSVars(png);
|
||||
|
||||
NextSkill = -1;
|
||||
|
|
Loading…
Reference in a new issue