diff options
author | celestar <celestar@openttd.org> | 2006-12-27 12:38:02 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-12-27 12:38:02 +0000 |
commit | 8cd5daa5334e8193d47240b78a39afaed6a0473a (patch) | |
tree | 28100daed109de06e979123edd0601487ecc8261 /yapf/yapf_costbase.hpp | |
parent | 98e6c790e09e550a6cc0585b2084d26f8c7e51f5 (diff) | |
download | openttd-8cd5daa5334e8193d47240b78a39afaed6a0473a.tar.xz |
(svn r7573) -Merged the bridge branch. Allows to build bridges of arbitrary rail/road combinations (including signals)
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 |