diff options
Diffstat (limited to 'yapf/yapf_costbase.hpp')
-rw-r--r-- | yapf/yapf_costbase.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yapf/yapf_costbase.hpp b/yapf/yapf_costbase.hpp index b58df0c4d..df4d9e787 100644 --- a/yapf/yapf_costbase.hpp +++ b/yapf/yapf_costbase.hpp @@ -9,7 +9,7 @@ struct CYapfCostBase { 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 |