mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2025-05-06 07:51:30 +00:00
Merge pull request #2 from glKarin/patch-1
Load save file in the exact point where it was saved
This commit is contained in:
commit
73d31bcef8
1 changed files with 5 additions and 5 deletions
|
@ -1345,11 +1345,6 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo
|
|||
|
||||
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
|
||||
// for which I bumped th BUILD_NUMBER to 1305
|
||||
if( savegame.GetBuildNumber() >= 1305 )
|
||||
|
@ -1380,6 +1375,11 @@ bool idGameLocal::InitFromSaveGame( const char *mapName, idRenderWorld *renderWo
|
|||
}
|
||||
// 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
|
||||
savegame.CreateObjects();
|
||||
|
||||
|
|
Loading…
Reference in a new issue