- Bugfix: Wrong savegame version (104 instead of 106) was used for Daeltar's Airport externalization and so we could not load older savegames (without airport externalization)

- Enabled USE_AGGRESSIVE_ASSERTIONS in Debug.h

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2804 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2009-05-05 20:25:02 +00:00
parent a93c08a1b5
commit a0a79078ab
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -20,11 +20,12 @@ extern CHAR16 zTrackingNumber[16];
//
// Keeps track of the saved game version. Increment the saved game version whenever
// you will invalidate the saved game file
#define SAVE_GAME_VERSION 105 //104 //103 //102 //101 //100 // 99
#define SAVE_GAME_VERSION 106 //104 //103 //102 //101 //100 // 99
//these I don't so much need here
#define CURRENT_SAVEGAME_DATATYPE_VERSION 105
#define CURRENT_SAVEGAME_DATATYPE_VERSION 106
#define AIRPORT_SAVEGAME_DATATYPE_CHANGE 106 // Before this, we did not have airport externalized
#define AP100_SAVEGAME_DATATYPE_CHANGE 105 // Before this, we didn't have the 100AP structure changes
#define NIV_SAVEGAME_DATATYPE_CHANGE 102 // Before this, we used the old structure system
//#define SECOND_SAVEGAME_DATATYPE_CHANGE 999, #define CURRENT_SAVEGAME_DATATYPE_VERSION 999
+1 -1
View File
@@ -4142,7 +4142,7 @@ BOOLEAN LoadSavedGame( int ubSavedGameID )
}
//Dealtar's Airport Externalization
if( SaveGameHeader.uiSavedGameVersion >= 104 )
if( SaveGameHeader.uiSavedGameVersion >= AIRPORT_SAVEGAME_DATATYPE_CHANGE )
{
if ( !gPostalService.LoadShipmentListFromSaveGameFile(hFile) )
{
+1 -1
View File
@@ -55,7 +55,7 @@ inline void _Null() { }
//
// Uncomment the follow to turn on more aggressive assertions
//
//#define USE_AGGRESSIVE_ASSERTIONS
#define USE_AGGRESSIVE_ASSERTIONS
#ifdef FORCE_ASSERTS_ON