mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 12:44:10 +01:00
Feature: Prevent towns from upgrading individually-placed houses (#13270)
This commit is contained in:
@@ -168,6 +168,7 @@ public:
|
||||
td.road_speed = 0;
|
||||
td.tramtype = STR_NULL;
|
||||
td.tram_speed = 0;
|
||||
td.town_can_upgrade = std::nullopt;
|
||||
|
||||
td.grf = nullptr;
|
||||
|
||||
@@ -300,6 +301,11 @@ public:
|
||||
this->landinfo_data.push_back(GetString(STR_LANG_AREA_INFORMATION_TRAM_SPEED_LIMIT));
|
||||
}
|
||||
|
||||
/* Tile protection status */
|
||||
if (td.town_can_upgrade.has_value()) {
|
||||
this->landinfo_data.push_back(GetString(td.town_can_upgrade.value() ? STR_LAND_AREA_INFORMATION_TOWN_CAN_UPGRADE : STR_LAND_AREA_INFORMATION_TOWN_CANNOT_UPGRADE));
|
||||
}
|
||||
|
||||
/* NewGRF name */
|
||||
if (td.grf != nullptr) {
|
||||
SetDParamStr(0, td.grf);
|
||||
|
||||
Reference in New Issue
Block a user