From 5c8ebf487dbb1abff83d9705e9bf1d6c91e2ed51 Mon Sep 17 00:00:00 2001 From: Edward Richardson Date: Wed, 20 Jan 2016 19:14:43 +1300 Subject: [PATCH] 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. --- src/g_game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_game.cpp b/src/g_game.cpp index ca2233cdb..799a4e7aa 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -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;