diff options
author | rubidium <rubidium@openttd.org> | 2008-05-26 00:31:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-26 00:31:36 +0000 |
commit | cd8e589fa9c744a24d550de0dcd549f00ea6de1c (patch) | |
tree | 3f44a1d9be6c38b45ad872a47f1b32469c469497 /src/oldloader.cpp | |
parent | 8c9cc415e3eac6a7709f6a8978f213311416312e (diff) | |
download | openttd-cd8e589fa9c744a24d550de0dcd549f00ea6de1c.tar.xz |
(svn r13256) -Codechange: merge the OPTS and PATS chuncks.
-Codechange: split the diff_custom variable.
-Feature: allow changing some of the diff_custom variables via the console in network games.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r-- | src/oldloader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 8bc9c7be4..bf7543bc1 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -1374,7 +1374,7 @@ static const OldChunks game_difficulty_chunk[] = { OCL_SVAR( OC_FILE_U16 | OC_VAR_U8, DifficultySettings, competitor_start_time ), OCL_SVAR( OC_FILE_U16 | OC_VAR_U8, DifficultySettings, number_towns ), OCL_SVAR( OC_FILE_U16 | OC_VAR_U8, DifficultySettings, number_industries ), - OCL_SVAR( OC_FILE_U16 | OC_VAR_U16, DifficultySettings, max_loan ), + OCL_SVAR( OC_FILE_U16 | OC_VAR_U32, DifficultySettings, max_loan ), OCL_SVAR( OC_FILE_U16 | OC_VAR_U8, DifficultySettings, initial_interest ), OCL_SVAR( OC_FILE_U16 | OC_VAR_U8, DifficultySettings, vehicle_costs ), OCL_SVAR( OC_FILE_U16 | OC_VAR_U8, DifficultySettings, competitor_speed ), @@ -1392,7 +1392,9 @@ static const OldChunks game_difficulty_chunk[] = { static inline bool LoadOldGameDifficulty(LoadgameState *ls, int num) { - return LoadChunk(ls, &_settings.difficulty, game_difficulty_chunk); + bool ret = LoadChunk(ls, &_settings.difficulty, game_difficulty_chunk); + _settings.difficulty.max_loan *= 1000; + return ret; } |