diff options
author | smatz <smatz@openttd.org> | 2008-01-04 19:45:29 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-04 19:45:29 +0000 |
commit | 7302d8c88b25e08a414ebf4e8e83abffc1c3961a (patch) | |
tree | 9a2deee8e62f246ba97175135518232409950b73 /src/npf.cpp | |
parent | 9299f76af42eb4c8ca8d7077fc60f87c2d962047 (diff) | |
download | openttd-7302d8c88b25e08a414ebf4e8e83abffc1c3961a.tar.xz |
(svn r11760) -Codechange: unify the way how other end of a tunnel/bridge is determined at some places
-Fix: adding road/tram to tram/road bridge was cheaper by one tile
Diffstat (limited to 'src/npf.cpp')
-rw-r--r-- | src/npf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/npf.cpp b/src/npf.cpp index a253fd757..a5d8c7146 100644 --- a/src/npf.cpp +++ b/src/npf.cpp @@ -538,7 +538,7 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current) /* This is a tunnel/bridge. We know this tunnel/bridge is our type, * otherwise we wouldn't have got here. It is also facing us, * so we should skip it's body */ - dst_tile = IsTunnel(src_tile) ? GetOtherTunnelEnd(src_tile) : GetOtherBridgeEnd(src_tile); + dst_tile = GetOtherTunnelBridgeEnd(src_tile); override_dst_check = true; } else if (type != TRANSPORT_WATER && (IsStandardRoadStopTile(src_tile) || IsTileDepotType(src_tile, type))) { /* This is a road station (non drive-through) or a train or road depot. We can enter and exit |