--- a/yapf/yapf_costbase.hpp Wed Dec 27 12:22:25 2006 +0000
+++ b/yapf/yapf_costbase.hpp Wed Dec 27 12:38:02 2006 +0000
@@ -9,7 +9,7 @@
FORCEINLINE static bool stSlopeCost(TileIndex tile, Trackdir td)
{
if (IsDiagonalTrackdir(td)) {
- if (IsBridgeTile(tile) && IsBridgeRamp(tile)) {
+ if (IsBridgeTile(tile)) {
// it is bridge ramp, check if we are entering the bridge
if (GetBridgeRampDirection(tile) != TrackdirToExitdir(td)) return false; // no, we are living it, no penalty
// we are entering the bridge