Codechange: Make TownRatingCheckType an enum class. (#14652)

This commit is contained in:
Peter Nelson
2025-09-23 22:00:34 +01:00
committed by dP
parent 8dd7c6dba4
commit 5637beeb84
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -866,7 +866,7 @@ static CommandCost DoClearTunnel(TileIndex tile, DoCommandFlags flags)
/* Check if you are allowed to remove the tunnel owned by a town
* Removal depends on difficulty settings */
ret = CheckforTownRating(flags, t, TUNNELBRIDGE_REMOVE);
ret = CheckforTownRating(flags, t, TownRatingCheckType::TunnelBridgeRemove);
if (ret.Failed()) return ret;
}
@@ -947,7 +947,7 @@ static CommandCost DoClearBridge(TileIndex tile, DoCommandFlags flags)
/* Check if you are allowed to remove the bridge owned by a town
* Removal depends on difficulty settings */
ret = CheckforTownRating(flags, t, TUNNELBRIDGE_REMOVE);
ret = CheckforTownRating(flags, t, TownRatingCheckType::TunnelBridgeRemove);
if (ret.Failed()) return ret;
}