Changeset - r3067:868ea0b7791c
[Not reviewed]
master
0 1 0
tron - 19 years ago 2006-02-23 07:31:36
tron@openttd.org
(svn r3656) Simplify the overly complicated check for road pieces under a bridge
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
road_cmd.c
Show inline comments
 
@@ -48,10 +48,10 @@ static bool HasTileRoadAt(TileIndex tile
 
			(~(_m[tile].m5 - 0x43) & 3) == i;
 

	
 
	case MP_TUNNELBRIDGE:
 
		mask = GetRoadBitsByTile(tile);
 
		b = 10; if (mask & 1) break;
 
		b = 5;  if (mask & 2) break;
 
		return false;
 
		// bail out, if not a bridge middle part with road underneath
 
		if ((_m[tile].m5 & 0xF8) != 0xE8) return false;
 
		// road direction perpendicular to bridge
 
		b = (_m[tile].m5 & 0x01) ? 10 : 5;
 

	
 
	default:
 
		return false;
0 comments (0 inline, 0 general)