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
commitc4c440cc20c0cb76442feb07b059b2f69106f5da (patch)
tree3f44a1d9be6c38b45ad872a47f1b32469c469497 /src/oldloader.cpp
parentd289464d69172a1048048aebe29bfd56250fc6fa (diff)
downloadopenttd-c4c440cc20c0cb76442feb07b059b2f69106f5da.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;
}