src/road_cmd.cpp
changeset 6711 8b1b0795ef19
parent 6710 fd3ade8bf17a
child 6713 7962b523ecd6
--- a/src/road_cmd.cpp	Sat May 26 20:52:23 2007 +0000
+++ b/src/road_cmd.cpp	Sat May 26 21:00:48 2007 +0000
@@ -434,7 +434,7 @@
 			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)))