--- a/src/yapf/yapf_costbase.hpp Fri Nov 23 16:59:30 2007 +0000
+++ b/src/yapf/yapf_costbase.hpp Wed Jan 09 18:11:12 2008 +0000
@@ -11,7 +11,7 @@
if (IsDiagonalTrackdir(td)) {
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
+ if (GetTunnelBridgeDirection(tile) != TrackdirToExitdir(td)) return false; // no, we are living it, no penalty
// we are entering the bridge
// if the tile slope is downwards, then bridge ramp has not upward slope
uint tile_slope = GetTileSlope(tile, NULL) & 0x0F;