diff options
author | rubidium <rubidium@openttd.org> | 2009-02-11 20:41:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-11 20:41:17 +0000 |
commit | e8dbf62761c6ef456a21db04baac216703be7ce1 (patch) | |
tree | d47240d6d406009e336448da1b40002aac1f003c /src/road.cpp | |
parent | 81cf1cac8f23e53ee5b6a69e8c9d6023dbcefe22 (diff) | |
download | openttd-e8dbf62761c6ef456a21db04baac216703be7ce1.tar.xz |
(svn r15454) -Fix [FS#2614]: towns did not know about build_on_slopes in some cases, or made decisions on the 'original' slope instead the slope after applying the foundation..
Diffstat (limited to 'src/road.cpp')
-rw-r--r-- | src/road.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/road.cpp b/src/road.cpp index d8c3d0e43..01f777d23 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -13,13 +13,14 @@ #include "engine_base.h" #include "date_func.h" #include "settings_type.h" +#include "landscape.h" bool IsPossibleCrossing(const TileIndex tile, Axis ax) { return (IsTileType(tile, MP_RAILWAY) && !HasSignals(tile) && - GetTrackBits(tile) == (ax == AXIS_X ? TRACK_BIT_Y : TRACK_BIT_X) && - GetTileSlope(tile, NULL) == SLOPE_FLAT); + GetTrackBits(tile) == (ax == AXIS_X ? TRACK_BIT_Y : TRACK_BIT_X) && + GetFoundationSlope(tile, NULL) == SLOPE_FLAT); } RoadBits CleanUpRoadBits(const TileIndex tile, RoadBits org_rb) |