equal
deleted
inserted
replaced
1769 uint32 relocation; |
1769 uint32 relocation; |
1770 |
1770 |
1771 if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED); |
1771 if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED); |
1772 |
1772 |
1773 if (IsRailDepot(ti->tile)) { |
1773 if (IsRailDepot(ti->tile)) { |
1774 dts = &_depot_gfx_table[GetRailDepotDirection(ti->tile)]; |
1774 if (IsInvisibilitySet(TO_BUILDINGS)) { |
|
1775 /* Draw rail instead of depot */ |
|
1776 dts = &_depot_invisible_gfx_table[GetRailDepotDirection(ti->tile)]; |
|
1777 } else { |
|
1778 dts = &_depot_gfx_table[GetRailDepotDirection(ti->tile)]; |
|
1779 } |
1775 |
1780 |
1776 relocation = rti->total_offset; |
1781 relocation = rti->total_offset; |
1777 |
1782 |
1778 image = dts->ground.sprite; |
1783 image = dts->ground.sprite; |
1779 if (image != SPR_FLAT_GRASS_TILE) image += rti->total_offset; |
1784 if (image != SPR_FLAT_GRASS_TILE) image += rti->total_offset; |
1832 } |
1837 } |
1833 |
1838 |
1834 DrawGroundSprite(image, PAL_NONE); |
1839 DrawGroundSprite(image, PAL_NONE); |
1835 |
1840 |
1836 if (HasCatenary(GetRailType(ti->tile))) DrawCatenary(ti); |
1841 if (HasCatenary(GetRailType(ti->tile))) DrawCatenary(ti); |
|
1842 |
|
1843 /* End now if buildings are invisible */ |
|
1844 if (IsInvisibilitySet(TO_BUILDINGS)) return; |
1837 |
1845 |
1838 foreach_draw_tile_seq(dtss, dts->seq) { |
1846 foreach_draw_tile_seq(dtss, dts->seq) { |
1839 SpriteID image = dtss->image.sprite; |
1847 SpriteID image = dtss->image.sprite; |
1840 SpriteID pal; |
1848 SpriteID pal; |
1841 |
1849 |