Changeset - r3232:2a5bb753cc61
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-03-16 13:23:47
tron@openttd.org
(svn r3905) -Fix: When returning the rail type under a bridge, check if there are rails at all
1 file changed with 1 insertions and 1 deletions:
rail.c
1
1
0 comments (0 inline, 0 general)
rail.c
Show inline comments
 
@@ -133,7 +133,7 @@ RailType GetTileRailType(TileIndex tile,
 
			if ((_m[tile].m5 & 0xC6) == 0xC0 && ((DiagDirection)(_m[tile].m5 & 0x1)) == (exitdir & 0x1))
 
				type = (_m[tile].m3 >> 4) & RAILTYPE_MASK;
 
			/* under bridge (any type) */
 
			if ((_m[tile].m5 & 0xC0) == 0xC0 && (_m[tile].m5 & 0x1U) != (exitdir & 0x1))
 
			if ((_m[tile].m5 & 0xF8) == 0xE0 && (_m[tile].m5 & 0x1U) != (exitdir & 0x1))
 
				type = _m[tile].m3 & RAILTYPE_MASK;
 
			break;
 
		default:
0 comments (0 inline, 0 general)