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 | 7bd2b37fe7d8c29f232b7126cc19a81306a0434e (patch) | |
tree | 2251f0b5f29d319a7e1f5998e48afa88c7bce90f | |
parent | 6e988259a42191d8c79c46780981440ed91b5186 (diff) | |
download | openttd-7bd2b37fe7d8c29f232b7126cc19a81306a0434e.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); } |