Change: Ability to convert between road types for town roads and bridges now indi… #8457
…rectly depends on town ratings.
Motivation / Problem
Previously it was possible to convert town roads and bridges without restriction by the local authority.
With this change the ability to convert town roads and bridges depends on the players' companies' standing with the local authority, which is determined using CheckforTownRating() with the ROAD_REMOVE and the TUNNELBRIDGE_REMOVE TownRatingCheckTypes, respectively.
Basically the player is allowed to convert town roads if and only if the player would be allowed to destroy town roads, and the same goes for town bridges.
LordAro left a comment •
This appears to do exactly the same thing at the top of both if/else branches.
…idge conversion to a single if statement. Also, ClosestTownFromTile() is now only called when the tile in question actually belongs to a town.