From d5042d4ab2739150a311f032a7df63b45ef65928 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 15 Oct 2005 11:06:54 +0000 Subject: (svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list --- clear_cmd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clear_cmd.c') diff --git a/clear_cmd.c b/clear_cmd.c index 47967fee4..7ee1f6ef8 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -10,6 +10,7 @@ #include "viewport.h" #include "command.h" #include "variables.h" +#include "table/sprites.h" typedef struct TerraformerHeightMod { TileIndex tile; @@ -485,13 +486,13 @@ int32 CmdSellLandArea(int x, int y, uint32 flags, uint32 p1, uint32 p2) void DrawClearLandTile(const TileInfo *ti, byte set) { - DrawGroundSprite(0xF54 + _tileh_to_sprite[ti->tileh] + set * 19); + DrawGroundSprite(SPR_FLAT_BARE_LAND + _tileh_to_sprite[ti->tileh] + set * 19); } void DrawHillyLandTile(const TileInfo *ti) { if (ti->tileh != 0) { - DrawGroundSprite(0xFA0 + _tileh_to_sprite[ti->tileh]); + DrawGroundSprite(SPR_FLAT_ROUGH_LAND + _tileh_to_sprite[ti->tileh]); } else { DrawGroundSprite(_landscape_clear_sprites[GB(ti->x ^ ti->y, 4, 3)]); } @@ -529,7 +530,7 @@ static void DrawTile_Clear(TileInfo *ti) break; case 2: - DrawGroundSprite(0xFB7 + _tileh_to_sprite[ti->tileh]); + DrawGroundSprite(SPR_FLAT_ROCKY_LAND_1 + _tileh_to_sprite[ti->tileh]); break; case 3: -- cgit v1.2.3-54-g00ecf