From 35f1299d40b8ec24fde84db1a39b55e6603205bb Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 26 May 2007 22:44:09 +0000 Subject: [PATCH] (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(-) diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index cd9ba5deb5..2f51656bbd 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