# HG changeset patch # User tron # Date 2006-03-16 15:28:44 # Node ID 3a1bf691e08d251376b997ea9abfe5742e9be121 # Parent e8dbbce03288e8ca393f3dfa0c0ccfd19cb78b4a (svn r3908) Fix last commit (I'm saying that way too often *sigh*) (Pointed out by Celestar) diff --git a/npf.c b/npf.c --- a/npf.c +++ b/npf.c @@ -486,8 +486,15 @@ static bool VehicleMayEnterTile(Owner ow #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); }