diff options
author | truelight <truelight@openttd.org> | 2006-01-06 21:57:37 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-01-06 21:57:37 +0000 |
commit | efd3d4210779d54a1434d71e08fa26b03478ef18 (patch) | |
tree | fd96410bf56810a2dd8d3cc1147612e1fee71db2 /saveload.c | |
parent | 10a2787fd595788567bb1c3860dd31f37f628361 (diff) | |
download | openttd-efd3d4210779d54a1434d71e08fa26b03478ef18.tar.xz |
(svn r3376) -Codechange: made enums for GenerateWorld and InitializeGame 'mode'
-Fix: [ FS#30 ] don't reset date in SE when pressing RandomLand (rewrote patch of MeusH, but Peter warned me I should put his name in, so... oh well)
Diffstat (limited to 'saveload.c')
-rw-r--r-- | saveload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/saveload.c b/saveload.c index 339746342..827abe697 100644 --- a/saveload.c +++ b/saveload.c @@ -1232,7 +1232,7 @@ static const SaveLoadFormat *GetSavegameFormat(const char *s) } // 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 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode) /* 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 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode) /* 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(); |