mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: savegame compatibility
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6004 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-1
@@ -21,6 +21,7 @@ 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 MODULARIZED_AI 140 // Flugente: new savegame version due to modularized AI
|
||||
#define MILITIA_EQUIPMENT 139 // Flugente: militia can equip from sector inventory
|
||||
#define MULTITURN_ACTIONS 138 // Flugente: multiturn actions
|
||||
#define EXTERNALISED_MERCHANTS 137 // Flugente: increased the number of merchants and externalised their data
|
||||
@@ -58,7 +59,7 @@ extern CHAR16 zTrackingNumber[16];
|
||||
#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 SAVE_GAME_VERSION MILITIA_EQUIPMENT
|
||||
#define SAVE_GAME_VERSION MODULARIZED_AI
|
||||
|
||||
//#define RUSSIANGOLD
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -1272,7 +1272,8 @@ public:
|
||||
|
||||
INT16 bAIIndex; // PlanFactory from the modularized tactical AI that shall be used
|
||||
// Flugente: Decrease this filler by 1 for each new UINT8 / BOOLEAN variable, so we can maintain savegame compatibility!!
|
||||
UINT8 ubFiller[11];
|
||||
// Note that we also have to account for padding, so you might need to substract more than just the size of the new variables
|
||||
UINT8 ubFiller[10];
|
||||
|
||||
#ifdef JA2UB
|
||||
//ja25
|
||||
|
||||
Reference in New Issue
Block a user