summaryrefslogtreecommitdiff
path: root/industry_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-07-20 22:05:13 +0000
committercelestar <celestar@openttd.org>2005-07-20 22:05:13 +0000
commit1fed0046ac63119a6bc0f6bd4740fb7a2076f5da (patch)
tree1ff55f896a0c9995f049df3b3dd998c1694a611a /industry_cmd.c
parent7bce410f619798f60a65c1c1dde9512598d7d3dd (diff)
downloadopenttd-1fed0046ac63119a6bc0f6bd4740fb7a2076f5da.tar.xz
(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite
Diffstat (limited to 'industry_cmd.c')
-rw-r--r--industry_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index d7eaf5840..b24922025 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -1,6 +1,7 @@
#include "stdafx.h"
#include "openttd.h"
#include "table/strings.h"
+#include "table/sprites.h"
#include "map.h"
#include "tile.h"
#include "viewport.h"
@@ -370,7 +371,7 @@ static void DrawTile_Industry(TileInfo *ti)
image |= ormod;
if (_display_opt & DO_TRANS_BUILDINGS)
- image = (image & 0x3FFF) | 0x3224000;
+ MAKE_TRANSPARENT(image);
AddSortableSpriteToDraw(image,
ti->x | (dits->subtile_xy>>4),