mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r24391) -Change [FS#5229]: Disallow original and better road layouts to build roads under bridges along the bridge direction.
This commit is contained in:
parent
0ead281439
commit
6c2e201133
|
@ -847,6 +847,9 @@ static bool IsRoadAllowedHere(Town *t, TileIndex tile, DiagDirection dir)
|
|||
{
|
||||
if (DistanceFromEdge(tile) == 0) return false;
|
||||
|
||||
/* Prevent towns from building roads under bridges along the bridge. Looks silly. */
|
||||
if (MayHaveBridgeAbove(tile) && IsBridgeAbove(tile) && GetBridgeAxis(tile) == DiagDirToAxis(dir)) return false;
|
||||
|
||||
/* Check if there already is a road at this point? */
|
||||
if (GetTownRoadBits(tile) == ROAD_NONE) {
|
||||
/* No, try if we are able to build a road piece there.
|
||||
|
|
Loading…
Reference in New Issue