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 | c3fffd07f2eb0fe1ba85af99f61dbf9705e1a803 (patch) | |
tree | d96d2e3931268ecf78ad9d25315bde3c1e6ba188 | |
parent | 000bb4de54a706020fcfa071209b78c13c7c40f6 (diff) | |
download | openttd-c3fffd07f2eb0fe1ba85af99f61dbf9705e1a803.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; } |