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/road_cmd.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/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 14f6f43fc..43e51739a 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1383,7 +1383,7 @@ static void TileLoop_Road(TileIndex tile) { switch (_settings_game.game_creation.landscape) { case LT_ARCTIC: - if (IsOnSnow(tile) != (GetTilePixelZ(tile) > GetSnowLine())) { + if (IsOnSnow(tile) != (GetTileZ(tile) > GetSnowLine())) { ToggleSnow(tile); MarkTileDirtyByTile(tile); } |