summaryrefslogtreecommitdiff
path: root/src/yapf/yapf_costbase.hpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-16 15:38:51 +0000
committersmatz <smatz@openttd.org>2007-12-16 15:38:51 +0000
commit926fe5c9e9e9fc3fd1b8ed9779812d54ee128adf (patch)
tree3adebd2b8c9a10a6d993c67b0b5920b3598f2bce /src/yapf/yapf_costbase.hpp
parent8ce9c5f29b52cc9625bdda47594b4fad9e3dd242 (diff)
downloadopenttd-926fe5c9e9e9fc3fd1b8ed9779812d54ee128adf.tar.xz
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
Diffstat (limited to 'src/yapf/yapf_costbase.hpp')
-rw-r--r--src/yapf/yapf_costbase.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_costbase.hpp b/src/yapf/yapf_costbase.hpp
index df4d9e787..2793aab9f 100644
--- a/src/yapf/yapf_costbase.hpp
+++ b/src/yapf/yapf_costbase.hpp
@@ -11,7 +11,7 @@ struct CYapfCostBase {
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;