diff options
author | belugas <belugas@openttd.org> | 2006-03-30 19:16:44 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-03-30 19:16:44 +0000 |
commit | 1b28d92fc844bae632a1573cfd499de3ff4238ce (patch) | |
tree | 0f080a9a7fe135f94c938d4a6178f9175904cc93 /clear_cmd.c | |
parent | 1f17d91b47294e761901ba86a541b32ee1587fb4 (diff) | |
download | openttd-1b28d92fc844bae632a1573cfd499de3ff4238ce.tar.xz |
(svn r4181) CodeChange : Replaced [G/S]etMapExtraBits by [G/S]etTropicZone. Although it was an accessor, nor his usage nor the values were clear.
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clear_cmd.c b/clear_cmd.c index e11565b75..aea144127 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -603,13 +603,13 @@ static void TileLoopClearDesert(TileIndex tile) { if (IsClearGround(tile, CL_DESERT)) return; - if (GetMapExtraBits(tile) == 1) { + if (GetTropicZone(tile) == TROPICZONE_DESERT) { SetClearGroundDensity(tile, CL_DESERT, 3); } else { - if (GetMapExtraBits(tile + TileDiffXY( 1, 0)) != 1 && - GetMapExtraBits(tile + TileDiffXY(-1, 0)) != 1 && - GetMapExtraBits(tile + TileDiffXY( 0, 1)) != 1 && - GetMapExtraBits(tile + TileDiffXY( 0, -1)) != 1) + if (GetTropicZone(tile + TileDiffXY( 1, 0)) != TROPICZONE_DESERT && + GetTropicZone(tile + TileDiffXY(-1, 0)) != TROPICZONE_DESERT && + GetTropicZone(tile + TileDiffXY( 0, 1)) != TROPICZONE_DESERT && + GetTropicZone(tile + TileDiffXY( 0, -1)) != TROPICZONE_DESERT) return; SetClearGroundDensity(tile, CL_DESERT, 1); } |