mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r9943) -Fix [FS#806]: building roads/trams did take notice of the foundation of the opposite roadtype.
This commit is contained in:
parent
b741bd1b1e
commit
336c9a5cc4
@ -434,7 +434,7 @@ do_clear:;
|
|||||||
cost += ret;
|
cost += ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = CheckRoadSlope(tileh, &pieces, existing);
|
ret = CheckRoadSlope(tileh, &pieces, (IsTileType(tile, MP_STREET) ? GetAllRoadBits(tile) : ROAD_NONE) | 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
|
||||||
* current patch-setting is turned off (or stupid AI@work) */
|
* current patch-setting is turned off (or stupid AI@work) */
|
||||||
if (CmdFailed(ret) || (ret != 0 && (!_patches.build_on_slopes || _is_old_ai_player)))
|
if (CmdFailed(ret) || (ret != 0 && (!_patches.build_on_slopes || _is_old_ai_player)))
|
||||||
|
Loading…
Reference in New Issue
Block a user