(svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire?
authorrubidium
Sat, 26 May 2007 22:44:09 +0000
changeset 7212 1922cfdc28b8
parent 7211 2e9a89c80c8d
child 7213 9e17eef904cb
(svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire?
src/road_cmd.cpp
--- a/src/road_cmd.cpp	Sat May 26 22:19:04 2007 +0000
+++ b/src/road_cmd.cpp	Sat May 26 22:44:09 2007 +0000
@@ -438,7 +438,7 @@
 			cost += ret;
 	}
 
-	if (all_bits !=  existing) {
+	if (all_bits != pieces) {
 		/* Check the foundation/slopes when adding road/tram bits */
 		ret = CheckRoadSlope(tileh, &pieces, all_bits | existing);
 		/* Return an error if we need to build a foundation (ret != 0) but the