forked from mirror/OpenTTD
(svn r205) -Fix: [1026271] Vehicle depots not transparent with transparent buildings.
This commit is contained in:
@@ -1541,7 +1541,7 @@ static void DrawTile_Track(TileInfo *ti)
|
|||||||
if (image & 0x8000)
|
if (image & 0x8000)
|
||||||
image |= _drawtile_track_palette;
|
image |= _drawtile_track_palette;
|
||||||
image += tracktype_offs;
|
image += tracktype_offs;
|
||||||
if (!(_display_opt & DO_TRANS_BUILDINGS))
|
if (!(_display_opt & DO_TRANS_BUILDINGS)) // show transparent depots
|
||||||
image = (image & 0x3FFF) | 0x3224000;
|
image = (image & 0x3FFF) | 0x3224000;
|
||||||
AddSortableSpriteToDraw(image, ti->x | drss->subcoord_x,
|
AddSortableSpriteToDraw(image, ti->x | drss->subcoord_x,
|
||||||
ti->y | drss->subcoord_y, drss->width, drss->height, 0x17, ti->z);
|
ti->y | drss->subcoord_y, drss->width, drss->height, 0x17, ti->z);
|
||||||
|
@@ -817,6 +817,8 @@ static void DrawTile_Road(TileInfo *ti)
|
|||||||
while ((image=drss->image) != 0) {
|
while ((image=drss->image) != 0) {
|
||||||
if (image & 0x8000)
|
if (image & 0x8000)
|
||||||
image |= ormod;
|
image |= ormod;
|
||||||
|
if (!(_display_opt & DO_TRANS_BUILDINGS)) // show transparent depots
|
||||||
|
image = (image & 0x3FFF) | 0x3224000;
|
||||||
|
|
||||||
AddSortableSpriteToDraw(image, ti->x | drss->subcoord_x,
|
AddSortableSpriteToDraw(image, ti->x | drss->subcoord_x,
|
||||||
ti->y | drss->subcoord_y, drss->width, drss->height, 0x14, ti->z);
|
ti->y | drss->subcoord_y, drss->width, drss->height, 0x14, ti->z);
|
||||||
|
Reference in New Issue
Block a user