equal
deleted
inserted
replaced
14 #include "viewport.h" |
14 #include "viewport.h" |
15 #include "command.h" |
15 #include "command.h" |
16 #include "tunnel_map.h" |
16 #include "tunnel_map.h" |
17 #include "bridge_map.h" |
17 #include "bridge_map.h" |
18 #include "bridge.h" |
18 #include "bridge.h" |
|
19 #include "landscape.h" |
19 #include "variables.h" |
20 #include "variables.h" |
20 #include "table/sprites.h" |
21 #include "table/sprites.h" |
21 #include "unmovable_map.h" |
22 #include "unmovable_map.h" |
22 #include "genworld.h" |
23 #include "genworld.h" |
23 #include "industry.h" |
24 #include "industry.h" |
618 |
619 |
619 |
620 |
620 /* convert into snowy tiles */ |
621 /* convert into snowy tiles */ |
621 static void TileLoopClearAlps(TileIndex tile) |
622 static void TileLoopClearAlps(TileIndex tile) |
622 { |
623 { |
623 int k = GetTileZ(tile) - _opt.snow_line + TILE_HEIGHT; |
624 int k = GetTileZ(tile) - GetSnowLine() + TILE_HEIGHT; |
624 |
625 |
625 if (k < 0) { // well below the snow line |
626 if (k < 0) { // well below the snow line |
626 if (!IsClearGround(tile, CLEAR_SNOW)) return; |
627 if (!IsClearGround(tile, CLEAR_SNOW)) return; |
627 if (GetClearDensity(tile) == 0) SetClearGroundDensity(tile, CLEAR_GRASS, 3); |
628 if (GetClearDensity(tile) == 0) SetClearGroundDensity(tile, CLEAR_GRASS, 3); |
628 } else { |
629 } else { |