Changeset - r19474:0b9f0a25aef7
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-07-09 19:43:22
frosch@openttd.org
(svn r24391) -Change [FS#5229]: Disallow original and better road layouts to build roads under bridges along the bridge direction.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -847,6 +847,9 @@ static bool IsRoadAllowedHere(Town *t, T
 
{
 
	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.
0 comments (0 inline, 0 general)