Add: Allow separate expansion of town buildings and roads in scenario editor. (#14341)

This commit is contained in:
Peter Nelson
2025-06-07 14:56:43 +01:00
committed by GitHub
parent 6b5cde463a
commit ecafbf884e
8 changed files with 123 additions and 53 deletions

View File

@@ -501,7 +501,7 @@ void LoadTownData()
do {
uint before = t->cache.num_houses;
Command<CMD_EXPAND_TOWN>::Post(t->index, HOUSES_TO_GROW);
Command<CMD_EXPAND_TOWN>::Post(t->index, HOUSES_TO_GROW, {TownExpandMode::Buildings, TownExpandMode::Roads});
if (t->cache.num_houses <= before) fail_limit--;
} while (fail_limit > 0 && try_limit-- > 0 && t->cache.population < population);
}