From 4364cec392d1352406906a551e3ffa3f72da61ba Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 6 Feb 2011 18:26:50 +0000 Subject: (svn r22001) -Codechange: Rename difficulty.number_industries to difficulty.industry_density. --- src/saveload/afterload.cpp | 16 ++++++++-------- src/saveload/oldloader_sl.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/saveload') diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index dc021af33..abb2115b0 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1448,10 +1448,10 @@ bool AfterLoadGame() } if (IsSavegameVersionBefore(58)) { - /* Setting difficulty number_industries other than zero get bumped to +1 - * since a new option (very low at position1) has been added */ - if (_settings_game.difficulty.number_industries > 0) { - _settings_game.difficulty.number_industries++; + /* Setting difficulty industry_density other than zero get bumped to +1 + * since a new option (very low at position 1) has been added */ + if (_settings_game.difficulty.industry_density > 0) { + _settings_game.difficulty.industry_density++; } /* Same goes for number of towns, although no test is needed, just an increment */ @@ -2563,10 +2563,10 @@ bool AfterLoadGame() } if (IsSavegameVersionBefore(160)) { - /* Setting difficulty number_industries other than zero get bumped to +1 - * since a new option (very low at position1) has been added */ - if (_settings_game.difficulty.number_industries > 0) { - _settings_game.difficulty.number_industries++; + /* Setting difficulty industry_density other than zero get bumped to +1 + * since a new option (minimal at position 1) has been added */ + if (_settings_game.difficulty.industry_density > 0) { + _settings_game.difficulty.industry_density++; } } diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index db2ea4dca..724249b72 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -1444,7 +1444,7 @@ static const OldChunks game_difficulty_chunk[] = { OCL_SVAR( OC_FILE_U16 | OC_VAR_U8, DifficultySettings, max_no_competitors ), OCL_NULL( 2), // 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_U8, DifficultySettings, industry_density ), 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 ), -- cgit v1.2.3-70-g09d2