Merge pull request #2 from glKarin/patch-1

Load save file in the exact point where it was saved
This commit is contained in:
LegendGuard 2024-03-01 23:17:47 +01:00 committed by GitHub
commit 73d31bcef8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1345,11 +1345,6 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo
savegame.ReadBuildNumber(); savegame.ReadBuildNumber();
// a number to signify which release the save file belons to. this
// way we can make save games compatible with newer releases of
int eocnum;
savegame.ReadInt( eocnum );
// DG: I enhanced the information in savegames a bit for dhewm3 1.5.1 // DG: I enhanced the information in savegames a bit for dhewm3 1.5.1
// for which I bumped th BUILD_NUMBER to 1305 // for which I bumped th BUILD_NUMBER to 1305
if( savegame.GetBuildNumber() >= 1305 ) if( savegame.GetBuildNumber() >= 1305 )
@ -1380,6 +1375,11 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo
} }
// DG end // DG end
// a number to signify which release the save file belons to. this
// way we can make save games compatible with newer releases of
int eocnum;
savegame.ReadInt( eocnum );
// Create the list of all objects in the game // Create the list of all objects in the game
savegame.CreateObjects(); savegame.CreateObjects();