1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 03:42:41 +01:00

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

@@ -278,7 +278,7 @@
houses = std::min<SQInteger>(houses, UINT32_MAX);
return ScriptObject::Command<CMD_EXPAND_TOWN>::Do(town_id, houses);
return ScriptObject::Command<CMD_EXPAND_TOWN>::Do(town_id, houses, {TownExpandMode::Buildings, TownExpandMode::Roads});
}
/* static */ bool ScriptTown::FoundTown(TileIndex tile, TownSize size, bool city, RoadLayout layout, Text *name)