From 69162621d81c82b832cccc8d59179fc0e4472af2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Nov 2011 10:25:58 +0000 Subject: (svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/road_cmd.cpp') 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); } -- cgit v1.2.3-54-g00ecf