summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-03-24 18:16:39 +0000
committerbelugas <belugas@openttd.org>2006-03-24 18:16:39 +0000
commited86c3d818e8f61b2fe5cf7344a6db556ad87a34 (patch)
tree0b28a6b60c9227ace9353683266a32927594287b /industry_cmd.c
parentbdfe20ae739e5cacd5d8ee90b48d6467841293bc (diff)
downloadopenttd-ed86c3d818e8f61b2fe5cf7344a6db556ad87a34.tar.xz
(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 36aa24332..59c230104 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -352,7 +352,7 @@ static void DrawTile_Industry(TileInfo *ti)
/* Pointer to industry */
ind = GetIndustryByTile(ti->tile);
- ormod = (ind->color_map + 0x307) << PALETTE_SPRITE_START;
+ ormod = GENERAL_SPRITE_COLOR(ind->color_map);
/* Retrieve pointer to the draw industry tile struct */
dits = &_industry_draw_tile_data[(ti->map5 << 2) | GB(_m[ti->tile].m1, 0, 2)];