diff options
author | rubidium <rubidium@openttd.org> | 2007-05-26 22:44:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-26 22:44:09 +0000 |
commit | 9e8f500f7fce1e011b2be4ddb33e8340591b54ba (patch) | |
tree | 8d934abf4340d349de79fee9ee5212c8a6a33222 /src | |
parent | 5bdf6833b304618aef3a45b96a8458205bf85237 (diff) | |
download | openttd-9e8f500f7fce1e011b2be4ddb33e8340591b54ba.tar.xz |
(svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire?
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 2 |
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 |