Change: Hide bridge pillars if obstructed by tile below.
Tiles can now control if pillars are drawn on a bridge above it. There is no visible change with default bridges.
This commit is contained in:
committed by
Peter Nelson
parent
48b42492bc
commit
0a1c0b8b48
@@ -926,12 +926,14 @@ static void DrawTile_Water(TileInfo *ti)
|
||||
switch (GetWaterTileType(ti->tile)) {
|
||||
case WATER_TILE_CLEAR:
|
||||
DrawWaterClassGround(ti);
|
||||
DrawBridgeMiddle(ti);
|
||||
/* A plain water tile can be traversed in any direction, so setting blocked pillars here would mean all bridges
|
||||
* with edges would have no pillars above water. Instead prefer current behaviour of ships passing through. */
|
||||
DrawBridgeMiddle(ti, {});
|
||||
break;
|
||||
|
||||
case WATER_TILE_COAST: {
|
||||
DrawShoreTile(ti->tileh);
|
||||
DrawBridgeMiddle(ti);
|
||||
DrawBridgeMiddle(ti, {});
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user