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 | 1fed0046ac63119a6bc0f6bd4740fb7a2076f5da (patch) | |
tree | 1ff55f896a0c9995f049df3b3dd998c1694a611a /unmovable_cmd.c | |
parent | 7bce410f619798f60a65c1c1dde9512598d7d3dd (diff) | |
download | openttd-1fed0046ac63119a6bc0f6bd4740fb7a2076f5da.tar.xz |
(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r-- | unmovable_cmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c index e44649bce..4a43e81b5 100644 --- a/unmovable_cmd.c +++ b/unmovable_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 "command.h" @@ -125,7 +126,7 @@ static void DrawTile_Unmovable(TileInfo *ti) image = PLAYER_SPRITE_COLOR(GetTileOwner(ti->tile)); image += 0x8A48; if (_display_opt & DO_TRANS_BUILDINGS) - image = (image & 0x3FFF) | 0x3224000; + MAKE_TRANSPARENT(image); AddSortableSpriteToDraw(image, ti->x, ti->y, 16, 16, 25, ti->z); } else if (ti->map5 == 3) { @@ -151,7 +152,7 @@ static void DrawTile_Unmovable(TileInfo *ti) image = dtus->image; if (_display_opt & DO_TRANS_BUILDINGS) - image = (image & 0x3FFF) | 0x3224000; + MAKE_TRANSPARENT(image); AddSortableSpriteToDraw(image, ti->x | dtus->subcoord_x, @@ -173,7 +174,7 @@ static void DrawTile_Unmovable(TileInfo *ti) foreach_draw_tile_seq(dtss, t->seq) { image = dtss->image; if (_display_opt & DO_TRANS_BUILDINGS) { - image = (image & 0x3FFF) | 0x03224000; + MAKE_TRANSPARENT(image); } else { image |= ormod; } |