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
commit26a5b628656eb0fb134553d14c6c884bc53eacf4 (patch)
tree0b28a6b60c9227ace9353683266a32927594287b /industry_cmd.c
parent74853e619a34f481d141b586a5b2c94fe474b5a0 (diff)
downloadopenttd-26a5b628656eb0fb134553d14c6c884bc53eacf4.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)];