Mercurial > hg > openttd
changeset 3166:50848af4c1bb draft
(svn r3794) Use already available accessor functions instead of GB()
author | tron <tron@openttd.org> |
---|---|
date | Wed, 08 Mar 2006 15:28:38 +0000 |
parents | e61718f5fcd9 |
children | 3d360e619f7d |
files | clear_cmd.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/clear_cmd.c +++ b/clear_cmd.c @@ -501,9 +501,9 @@ 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 @@ 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; }