From 336c9a5cc432fce760d09b44e85577c8b5f1b2a4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 26 May 2007 21:00:48 +0000 Subject: (svn r9943) -Fix [FS#806]: building roads/trams did take notice of the foundation of the opposite roadtype. --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- cgit v1.2.3-70-g09d2