diff options
author | tron <tron@openttd.org> | 2006-03-16 15:28:44 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-16 15:28:44 +0000 |
commit | 83ba8bdf776f8fd820e51068097567841fc4bdf4 (patch) | |
tree | 2251f0b5f29d319a7e1f5998e48afa88c7bce90f | |
parent | b8da06ddb11f234451864e0b454163ebb546e4cd (diff) | |
download | openttd-83ba8bdf776f8fd820e51068097567841fc4bdf4.tar.xz |
(svn r3908) Fix last commit (I'm saying that way too often *sigh*) (Pointed out by Celestar)
-rw-r--r-- | npf.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -486,8 +486,15 @@ static bool VehicleMayEnterTile(Owner owner, TileIndex tile, DiagDirection enter #endif if ((IsTunnel(tile) && GetTunnelTransportType(tile) == TRANSPORT_RAIL) || (IsBridge(tile) && ( - (IsBridgeRamp(tile) && GetBridgeTransportType(tile) == TRANSPORT_RAIL) || - (IsBridgeMiddle(tile) && IsTransportUnderBridge(tile) && GetTransportTypeUnderBridge(tile) == TRANSPORT_RAIL) + ( + IsBridgeRamp(tile) && + GetBridgeTransportType(tile) == TRANSPORT_RAIL + ) || ( + IsBridgeMiddle(tile) && + IsTransportUnderBridge(tile) && + GetTransportTypeUnderBridge(tile) == TRANSPORT_RAIL && + GetBridgeAxis(tile) != DiagDirToAxis(enterdir) + ) ))) { return IsTileOwner(tile, owner); } |