summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-11 14:48:31 +0000
committerdarkvater <darkvater@openttd.org>2004-09-11 14:48:31 +0000
commitfe8c317d3ce5b399611ea9d7445b6c0870b041e5 (patch)
tree174d8a997dd1284934dcb961c8d26397b12bb6e4 /road_cmd.c
parentda87ab9c7984ec4fa77bcb11215c4061bff94220 (diff)
downloadopenttd-fe8c317d3ce5b399611ea9d7445b6c0870b041e5.tar.xz
(svn r205) -Fix: [1026271] Vehicle depots not transparent with transparent buildings.
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/road_cmd.c b/road_cmd.c
index e6e1fa76a..3547c1cfd 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -817,6 +817,8 @@ static void DrawTile_Road(TileInfo *ti)
while ((image=drss->image) != 0) {
if (image & 0x8000)
image |= ormod;
+ if (!(_display_opt & DO_TRANS_BUILDINGS)) // show transparent depots
+ image = (image & 0x3FFF) | 0x3224000;
AddSortableSpriteToDraw(image, ti->x | drss->subcoord_x,
ti->y | drss->subcoord_y, drss->width, drss->height, 0x14, ti->z);