(svn r23084) -Codechange: get rid of a redundant variable
This commit is contained in:
@@ -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(). */
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user