Change: Always allow expanding towns in Scenario Editor to build new roads (#11377)

This commit is contained in:
Tyler Trahan
2023-10-19 17:01:45 -04:00
committed by GitHub
parent 4df2640f87
commit 088db62dba
3 changed files with 16 additions and 16 deletions

View File

@@ -500,14 +500,6 @@ public:
break;
case WID_TV_EXPAND: { // expand town - only available on Scenario editor
/* Warn the user if towns are not allowed to build roads, but do this only once per OpenTTD run. */
static bool _warn_town_no_roads = false;
if (!_settings_game.economy.allow_town_roads && !_warn_town_no_roads) {
ShowErrorMessage(STR_ERROR_TOWN_EXPAND_WARN_NO_ROADS, INVALID_STRING_ID, WL_WARNING);
_warn_town_no_roads = true;
}
Command<CMD_EXPAND_TOWN>::Post(STR_ERROR_CAN_T_EXPAND_TOWN, this->window_number, 0);
break;
}