diff options
author | celestar <celestar@openttd.org> | 2005-07-20 22:05:13 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-07-20 22:05:13 +0000 |
commit | 85f06d6e7b5265fd1789ccb5014bedd07bd91426 (patch) | |
tree | 1ff55f896a0c9995f049df3b3dd998c1694a611a /industry_cmd.c | |
parent | 18a93cca3d4c590949015ff56e34d8906c60199a (diff) | |
download | openttd-85f06d6e7b5265fd1789ccb5014bedd07bd91426.tar.xz |
(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 3 |
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), |