diff options
author | tron <tron@openttd.org> | 2005-01-29 19:45:14 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-29 19:45:14 +0000 |
commit | 001aa8e4533a4a1dd7120b4b8300c698bae3519a (patch) | |
tree | 911339d12234fdbe85e78c906881ba0d7989b09c /saveload.c | |
parent | 3c82a2b3c76da6933c8c0f75905f62795acb115a (diff) | |
download | openttd-001aa8e4533a4a1dd7120b4b8300c698bae3519a.tar.xz |
(svn r1722) -Feature: Bigger maps - anyone?
Diffstat (limited to 'saveload.c')
-rw-r--r-- | saveload.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/saveload.c b/saveload.c index 580665c49..54931a2bb 100644 --- a/saveload.c +++ b/saveload.c @@ -1007,7 +1007,7 @@ static const SaveLoadFormat *GetSavegameFormat(const char *s) } // 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 @@ int SaveOrLoad(const char *filename, int mode) // 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 @@ init_err: 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(); } |