changeset 5018 | 479eff76269a |
parent 3900 | 2c84ed52709d |
child 5139 | 7bdb1b79daa5 |
--- a/yapf/yapf_costbase.hpp Fri Nov 03 23:29:24 2006 +0000 +++ b/yapf/yapf_costbase.hpp Sat Nov 04 11:44:19 2006 +0000 @@ -8,7 +8,7 @@ FORCEINLINE static bool stSlopeCost(TileIndex tile, Trackdir td) { - if (IsDiagonalTrackdir(td)) { + if (IsDiagonalTrackdir(td) && !IsTunnelTile(tile)) { uint tile_slope = GetTileSlope(tile, NULL) & 0x0F; if ((c_upwards_slopes[tile_slope] & TrackdirToTrackdirBits(td)) != 0) { return true;