saveload.c
changeset 2828 996de8e891c7
parent 2808 35e0e9c6c227
child 2848 cb4b1cc0bf65
--- a/saveload.c	Fri Jan 06 21:27:44 2006 +0000
+++ b/saveload.c	Fri Jan 06 21:57:37 2006 +0000
@@ -1232,7 +1232,7 @@
 }
 
 // actual loader/saver function
-void InitializeGame(uint size_x, uint size_y);
+void InitializeGame(int mode, uint size_x, uint size_y);
 extern bool AfterLoadGame(void);
 extern void BeforeSaveGame(void);
 extern bool LoadOldSaveGame(const char *file);
@@ -1363,7 +1363,7 @@
 
 	/* Load a TTDLX or TTDPatch game */
 	if (mode == SL_OLD_LOAD) {
-		InitializeGame(256, 256); // set a mapsize of 256x256 for TTDPatch games or it might get confused
+		InitializeGame(IG_DATE_RESET, 256, 256); // set a mapsize of 256x256 for TTDPatch games or it might get confused
 		if (!LoadOldSaveGame(filename)) return SL_REINIT;
 		_sl_version = 0;
 		AfterLoadGame();
@@ -1487,7 +1487,7 @@
 		/* Old maps were hardcoded to 256x256 and thus did not contain
 		 * any mapsize information. Pre-initialize to 256x256 to not to
 		 * confuse old games */
-		InitializeGame(256, 256);
+		InitializeGame(IG_DATE_RESET, 256, 256);
 
 		SlLoadChunks();
 		fmt->uninit_read();