Add: Check that towns can build roads before generating map. (#12503)

This commit is contained in:
Peter Nelson
2024-04-16 16:25:07 +01:00
committed by GitHub
parent 8e2ccddd77
commit 48eb9b8bc9
4 changed files with 49 additions and 0 deletions

View File

@@ -103,6 +103,10 @@ static void _GenerateWorld()
IncreaseGeneratingWorldProgress(GWP_MAP_INIT);
/* Must start economy early because of the costs. */
StartupEconomy();
if (!CheckTownRoadTypes()) {
HandleGeneratingWorldAbortion();
return;
}
bool landscape_generated = false;