mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r8635) -Fix: draw canal edges under buoys that are in a canal.
This commit is contained in:
parent
ea55a04b69
commit
6bbbedc8cc
@ -1977,6 +1977,9 @@ const DrawTileSprites *GetStationTileLayout(byte gfx)
|
||||
return &_station_display_datas[gfx];
|
||||
}
|
||||
|
||||
/* For drawing canal edges on buoys */
|
||||
extern void DrawCanalWater(TileIndex tile);
|
||||
|
||||
static void DrawTile_Station(TileInfo *ti)
|
||||
{
|
||||
const DrawTileSeqStruct *dtss;
|
||||
@ -2041,6 +2044,8 @@ static void DrawTile_Station(TileInfo *ti)
|
||||
|
||||
if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC && IsStationTileElectrifiable(ti->tile)) DrawCatenary(ti);
|
||||
|
||||
if (IsBuoyTile(ti->tile) && (ti->z != 0 || !IsTileOwner(ti->tile, OWNER_WATER))) DrawCanalWater(ti->tile);
|
||||
|
||||
foreach_draw_tile_seq(dtss, t->seq) {
|
||||
SpriteID pal;
|
||||
|
||||
|
@ -384,6 +384,12 @@ static const DrawTileSeqStruct _station_display_datas_81[] = {
|
||||
TILE_SEQ_END()
|
||||
};
|
||||
|
||||
/* Buoy, which will _always_ drown under the ship */
|
||||
static const DrawTileSeqStruct _station_display_datas_82[] = {
|
||||
{ 4, -1, 0, 0, 0, 0, SPR_IMG_BOUY, PAL_NONE },
|
||||
TILE_SEQ_END()
|
||||
};
|
||||
|
||||
// control tower with concrete underground and no fence
|
||||
// concrete underground
|
||||
static const DrawTileSeqStruct _station_display_datas_085[] = {
|
||||
@ -1036,7 +1042,7 @@ static const DrawTileSprites _station_display_datas[] = {
|
||||
{ SPR_SHORE_TILEH_6, PAL_NONE, _station_display_datas_79 },
|
||||
{ SPR_FLAT_WATER_TILE, PAL_NONE, _station_display_datas_80 },
|
||||
{ SPR_FLAT_WATER_TILE, PAL_NONE, _station_display_datas_81 },
|
||||
{ SPR_BUOY, PAL_NONE, _station_display_nothing },
|
||||
{ SPR_FLAT_WATER_TILE, PAL_NONE, _station_display_datas_82 },
|
||||
{ SPR_AIRPORT_RUNWAY_END, PAL_NONE, _station_display_nothing },
|
||||
{ SPR_AIRPORT_RUNWAY_EXIT_B, PAL_NONE, _station_display_nothing },
|
||||
{ SPR_AIRPORT_APRON, PAL_NONE, _station_display_datas_085 },
|
||||
|
Loading…
Reference in New Issue
Block a user