mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-23 21:50:23 +01:00
(svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire?
This commit is contained in:
parent
7088cedb7a
commit
35f1299d40
@ -438,7 +438,7 @@ do_clear:;
|
|||||||
cost += ret;
|
cost += ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (all_bits != existing) {
|
if (all_bits != pieces) {
|
||||||
/* Check the foundation/slopes when adding road/tram bits */
|
/* Check the foundation/slopes when adding road/tram bits */
|
||||||
ret = CheckRoadSlope(tileh, &pieces, all_bits | existing);
|
ret = CheckRoadSlope(tileh, &pieces, all_bits | existing);
|
||||||
/* Return an error if we need to build a foundation (ret != 0) but the
|
/* Return an error if we need to build a foundation (ret != 0) but the
|
||||||
|
Loading…
Reference in New Issue
Block a user