saveload.c
changeset 1218 353a7773bc3c
parent 1217 ab9f02a224ab
child 1260 c60e76928e5c
--- a/saveload.c	Sat Jan 29 19:41:44 2005 +0000
+++ b/saveload.c	Sat Jan 29 19:45:14 2005 +0000
@@ -1007,7 +1007,7 @@
 }
 
 // actual loader/saver function
-extern void InitializeGame(void);
+void InitializeGame(uint log_x, uint log_y);
 extern bool AfterLoadGame(uint version);
 extern void BeforeSaveGame(void);
 extern bool LoadOldSaveGame(const char *file);
@@ -1021,7 +1021,7 @@
 
 	// old style load
 	if (mode == SL_OLD_LOAD) {
-		InitializeGame();
+		InitializeGame(8, 8);
 		if (!LoadOldSaveGame(filename)) return SL_REINIT;
 		AfterLoadGame(0);
 		return SL_OK;
@@ -1126,7 +1126,10 @@
 
 		if (!fmt->init_read()) goto init_err;
 		// Clear everything
-		InitializeGame();
+		/* Set the current map to 256x256, in case of an old map.
+		 * Else MAPS will read the right information */
+		InitializeGame(8, 8);
+
 		SlLoadChunks();
 		fmt->uninit_read();
 	}