summaryrefslogtreecommitdiff
path: root/src/saveload/afterload.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-03 22:49:03 +0000
committerrubidium <rubidium@openttd.org>2011-11-03 22:49:03 +0000
commit47c5d30b5d967cf5c48f3de1c7ca1ee492f60002 (patch)
treeb733935884805a61a58a0e2f55c57dc08e9499ca /src/saveload/afterload.cpp
parente98be8ed244e3d61ae0ae5c28bff8098bc2ff79f (diff)
downloadopenttd-47c5d30b5d967cf5c48f3de1c7ca1ee492f60002.tar.xz
(svn r23084) -Codechange: get rid of a redundant variable
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r--src/saveload/afterload.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index af6028d1c..d3fce84d0 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -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(). */