diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 10:25:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 10:25:58 +0000 |
commit | 69162621d81c82b832cccc8d59179fc0e4472af2 (patch) | |
tree | 84b0875823153321225331b2a4a5862a60fdc345 /src/landscape.cpp | |
parent | b167c0a3967a62b4cbe98a12f2c4d932ee8df510 (diff) | |
download | openttd-69162621d81c82b832cccc8d59179fc0e4472af2.tar.xz |
(svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r-- | src/landscape.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp index f70cbeda8..f310f39d4 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -561,7 +561,7 @@ void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]) */ byte GetSnowLine() { - if (_snow_line == NULL) return _settings_game.game_creation.snow_line_height * TILE_HEIGHT; + if (_snow_line == NULL) return _settings_game.game_creation.snow_line_height; YearMonthDay ymd; ConvertDateToYMD(_date, &ymd); @@ -575,7 +575,7 @@ byte GetSnowLine() */ byte HighestSnowLine() { - return _snow_line == NULL ? _settings_game.game_creation.snow_line_height * TILE_HEIGHT : _snow_line->highest_value; + return _snow_line == NULL ? _settings_game.game_creation.snow_line_height : _snow_line->highest_value; } /** @@ -585,7 +585,7 @@ byte HighestSnowLine() */ byte LowestSnowLine() { - return _snow_line == NULL ? _settings_game.game_creation.snow_line_height * TILE_HEIGHT : _snow_line->lowest_value; + return _snow_line == NULL ? _settings_game.game_creation.snow_line_height : _snow_line->lowest_value; } /** |