(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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user