From 9e8f500f7fce1e011b2be4ddb33e8340591b54ba Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 26 May 2007 22:44:09 +0000 Subject: (svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire? --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/road_cmd.cpp') diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index cd9ba5deb..2f51656bb 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -438,7 +438,7 @@ do_clear:; 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 -- cgit v1.2.3-54-g00ecf