(svn r23084) -Codechange: get rid of a redundant variable

This commit is contained in:
rubidium
2011-11-03 22:49:03 +00:00
parent 091d31b84b
commit 41223c8bc9
8 changed files with 15 additions and 22 deletions

View File

@@ -2648,6 +2648,11 @@ bool AfterLoadGame()
}
}
/* This triggers only when old snow_lines were copied into the snow_line_height. */
if (IsSavegameVersionBefore(164) && _settings_game.game_creation.snow_line_height >= MIN_SNOWLINE_HEIGHT * TILE_HEIGHT) {
_settings_game.game_creation.snow_line_height /= TILE_HEIGHT;
}
/* When any NewGRF has been changed the availability of some vehicles might
* have been changed too. e->company_avail must be set to 0 in that case
* which is done by StartupEngines(). */

View File

@@ -1724,7 +1724,7 @@ static const OldChunks main_chunk[] = {
OCL_VAR ( OC_TTD | OC_UINT8, 1, &_trees_tick_ctr ),
OCL_CNULL( OC_TTD, 1 ), ///< Custom vehicle types yes/no, no longer used
OCL_VAR ( OC_TTD | OC_UINT8, 1, &_settings_game.game_creation.snow_line ),
OCL_VAR ( OC_TTD | OC_UINT8, 1, &_settings_game.game_creation.snow_line_height ),
OCL_CNULL( OC_TTD, 32 ), ///< new_industry_randtable, no longer used (because of new design)
OCL_CNULL( OC_TTD, 36 ), ///< cargo-stuff