diff options
author | tron <tron@openttd.org> | 2006-03-08 15:28:38 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-08 15:28:38 +0000 |
commit | 7bce62899c796cc114224c159249c7b302d2deae (patch) | |
tree | d96d2e3931268ecf78ad9d25315bde3c1e6ba188 | |
parent | 2c6435ccc986bc24079506f4ab145c150b537164 (diff) | |
download | openttd-7bce62899c796cc114224c159249c7b302d2deae.tar.xz |
(svn r3794) Use already available accessor functions instead of GB()
-rw-r--r-- | clear_cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clear_cmd.c b/clear_cmd.c index 591f2a1ab..df24bff56 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -501,9 +501,9 @@ void DrawClearLandFence(const TileInfo *ti) static void DrawTile_Clear(TileInfo *ti) { - switch (GB(ti->map5, 2, 3)) { + switch (GetClearGround(ti->tile)) { case CL_GRASS: - DrawClearLandTile(ti, GB(ti->map5, 0, 2)); + DrawClearLandTile(ti, GetClearDensity(ti->tile)); break; case CL_ROUGH: @@ -519,11 +519,11 @@ static void DrawTile_Clear(TileInfo *ti) break; case CL_SNOW: - DrawGroundSprite(_clear_land_sprites_2[GB(ti->map5, 0, 2)] + _tileh_to_sprite[ti->tileh]); + DrawGroundSprite(_clear_land_sprites_2[GetClearDensity(ti->tile)] + _tileh_to_sprite[ti->tileh]); break; case CL_DESERT: - DrawGroundSprite(_clear_land_sprites_3[GB(ti->map5, 0, 2)] + _tileh_to_sprite[ti->tileh]); + DrawGroundSprite(_clear_land_sprites_3[GetClearDensity(ti->tile)] + _tileh_to_sprite[ti->tileh]); break; } |