Add setting to limit length of continuous inclined roads built by towns

Default to max 4 tiles
This commit is contained in:
Jonathan G Rennison
2022-10-10 18:14:09 +01:00
parent 1e4912cf78
commit 846cd7e228
6 changed files with 52 additions and 2 deletions

View File

@@ -494,7 +494,7 @@ extern const RoadBits _invalid_tileh_slopes_road[2][15] = {
}
};
static Foundation GetRoadFoundation(Slope tileh, RoadBits bits);
Foundation GetRoadFoundation(Slope tileh, RoadBits bits);
void NotifyRoadLayoutChangedIfTileNonLeaf(TileIndex tile, RoadTramType rtt, RoadBits present_bits)
{
@@ -1831,7 +1831,7 @@ struct DrawRoadTileStruct {
* @param bits The RoadBits part
* @return The resulting Foundation
*/
static Foundation GetRoadFoundation(Slope tileh, RoadBits bits)
Foundation GetRoadFoundation(Slope tileh, RoadBits bits)
{
/* Flat land and land without a road doesn't require a foundation */
if (tileh == SLOPE_FLAT || bits == ROAD_NONE) return FOUNDATION_NONE;