summaryrefslogtreecommitdiff
path: root/src/saveload.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-29 09:54:47 +0000
committerrubidium <rubidium@openttd.org>2008-05-29 09:54:47 +0000
commit34e2d8f1e14c4204b299b78623d9935c7b07b4e3 (patch)
treecccf15d8a59031edb6cb85fccdfdf7895b781b06 /src/saveload.cpp
parent8ea996e246ab1d38e14d5b8d80ff7f2ac9aee24f (diff)
downloadopenttd-34e2d8f1e14c4204b299b78623d9935c7b07b4e3.tar.xz
(svn r13320) -Codechange: move some enums from openttd.h to more logical locations.
Diffstat (limited to 'src/saveload.cpp')
-rw-r--r--src/saveload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp
index 8b346d75c..76267236a 100644
--- a/src/saveload.cpp
+++ b/src/saveload.cpp
@@ -1471,7 +1471,7 @@ static const SaveLoadFormat *GetSavegameFormat(const char *s)
}
/* actual loader/saver function */
-void InitializeGame(int mode, uint size_x, uint size_y);
+void InitializeGame(uint size_x, uint size_y, bool reset_date);
extern bool AfterLoadGame();
extern void BeforeSaveGame();
extern bool LoadOldSaveGame(const char *file);
@@ -1634,7 +1634,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb)
/* Load a TTDLX or TTDPatch game */
if (mode == SL_OLD_LOAD) {
- InitializeGame(IG_DATE_RESET, 256, 256); // set a mapsize of 256x256 for TTDPatch games or it might get confused
+ InitializeGame(256, 256, true); // set a mapsize of 256x256 for TTDPatch games or it might get confused
if (!LoadOldSaveGame(filename)) return SL_REINIT;
_sl_version = 0;
_sl_minor_version = 0;
@@ -1747,7 +1747,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb)
/* 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(IG_DATE_RESET, 256, 256);
+ InitializeGame(256, 256, true);
SlLoadChunks();
fmt->uninit_read();