MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / TownAllowedToBuildRoads

Function TownAllowedToBuildRoads

src/town_cmd.cpp:1505–1508  ·  view source on GitHub ↗

* Check if the town is allowed to build roads. * @return true If the town is allowed to build roads. */

Source from the content-addressed store, hash-verified

1503 * @return true If the town is allowed to build roads.
1504 */
1505static inline bool TownAllowedToBuildRoads(TownExpandModes modes)
1506{
1507 return modes.Test(TownExpandMode::Roads);
1508}
1509
1510/* The possible states of town growth. */
1511enum class TownGrowthResult {

Callers 5

GrowTownInTileFunction · 0.85
CanFollowRoadFunction · 0.85
GrowTownFunction · 0.85

Calls 1

TestMethod · 0.80

Tested by

no test coverage detected