summaryrefslogtreecommitdiff
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
parentda87ab9c7984ec4fa77bcb11215c4061bff94220 (diff)
downloadopenttd-fe8c317d3ce5b399611ea9d7445b6c0870b041e5.tar.xz
(svn r205) -Fix: [1026271] Vehicle depots not transparent with transparent buildings.
-rw-r--r--rail_cmd.c2
-rw-r--r--road_cmd.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 1d14caf2d..ad0ce8e41 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1541,7 +1541,7 @@ static void DrawTile_Track(TileInfo *ti)
if (image & 0x8000)
image |= _drawtile_track_palette;
image += tracktype_offs;
- if (!(_display_opt & DO_TRANS_BUILDINGS))
+ 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, 0x17, ti->z);
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);