summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-26 21:00:48 +0000
committerrubidium <rubidium@openttd.org>2007-05-26 21:00:48 +0000
commit0e07a938b743c809cdb77ddefce4d8ebf0ea2403 (patch)
treeb3da9a9af7afa0fab4fcb9d9e1dcd4765262eaff
parent016e651ffdf9f0c4517db110c26b450a22133543 (diff)
downloadopenttd-0e07a938b743c809cdb77ddefce4d8ebf0ea2403.tar.xz
(svn r9943) -Fix [FS#806]: building roads/trams did take notice of the foundation of the opposite roadtype.
-rw-r--r--src/road_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index ecb395b65..f93a6d9db 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -434,7 +434,7 @@ do_clear:;
cost += ret;
}
- ret = CheckRoadSlope(tileh, &pieces, existing);
+ ret = CheckRoadSlope(tileh, &pieces, (IsTileType(tile, MP_STREET) ? GetAllRoadBits(tile) : ROAD_NONE) | existing);
/* Return an error if we need to build a foundation (ret != 0) but the
* current patch-setting is turned off (or stupid AI@work) */
if (CmdFailed(ret) || (ret != 0 && (!_patches.build_on_slopes || _is_old_ai_player)))