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 | 6a4ab97d36b8df17a4496c7f0629a00e9aa6749b (patch) | |
tree | d47240d6d406009e336448da1b40002aac1f003c /src/town_cmd.cpp | |
parent | 2fc6c2d0b090b077f06a8934c019778b8f7f085e (diff) | |
download | openttd-6a4ab97d36b8df17a4496c7f0629a00e9aa6749b.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/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index d4e23ee99..c3d748331 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -776,7 +776,7 @@ static bool IsRoadAllowedHere(Town *t, TileIndex tile, DiagDirection dir) return false; } - cur_slope = GetTileSlope(tile, NULL); + cur_slope = _settings_game.construction.build_on_slopes ? GetFoundationSlope(tile, NULL) : GetTileSlope(tile, NULL); if (cur_slope == SLOPE_FLAT) { no_slope: /* Tile has no slope */ |