summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-26 22:44:09 +0000
committerrubidium <rubidium@openttd.org>2007-05-26 22:44:09 +0000
commit35f1299d40b8ec24fde84db1a39b55e6603205bb (patch)
tree8d934abf4340d349de79fee9ee5212c8a6a33222
parent7088cedb7a020686f20165c5f2c8d5b47cea953f (diff)
downloadopenttd-35f1299d40b8ec24fde84db1a39b55e6603205bb.tar.xz
(svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire?
-rw-r--r--src/road_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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