summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-26 00:31:36 +0000
committerrubidium <rubidium@openttd.org>2008-05-26 00:31:36 +0000
commitcd8e589fa9c744a24d550de0dcd549f00ea6de1c (patch)
tree3f44a1d9be6c38b45ad872a47f1b32469c469497 /src/oldloader.cpp
parent8c9cc415e3eac6a7709f6a8978f213311416312e (diff)
downloadopenttd-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.cpp6
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;
}