forked from mirror/OpenTTD
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
This commit is contained in:
@@ -1772,7 +1772,12 @@ static void DrawTile_Track(TileInfo *ti)
|
||||
if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED);
|
||||
|
||||
if (IsRailDepot(ti->tile)) {
|
||||
dts = &_depot_gfx_table[GetRailDepotDirection(ti->tile)];
|
||||
if (IsInvisibilitySet(TO_BUILDINGS)) {
|
||||
/* Draw rail instead of depot */
|
||||
dts = &_depot_invisible_gfx_table[GetRailDepotDirection(ti->tile)];
|
||||
} else {
|
||||
dts = &_depot_gfx_table[GetRailDepotDirection(ti->tile)];
|
||||
}
|
||||
|
||||
relocation = rti->total_offset;
|
||||
|
||||
@@ -1836,6 +1841,9 @@ default_waypoint:
|
||||
|
||||
if (HasCatenary(GetRailType(ti->tile))) DrawCatenary(ti);
|
||||
|
||||
/* End now if buildings are invisible */
|
||||
if (IsInvisibilitySet(TO_BUILDINGS)) return;
|
||||
|
||||
foreach_draw_tile_seq(dtss, dts->seq) {
|
||||
SpriteID image = dtss->image.sprite;
|
||||
SpriteID pal;
|
||||
|
Reference in New Issue
Block a user