From 9519c5c1fb6aee15f85cecf7a253e61e149755e4 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 9 Jun 2019 20:47:27 +0100 Subject: [PATCH] Ensure town cargo bitmap correctly set after town creation --- src/genworld.cpp | 1 + src/town_cmd.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/genworld.cpp b/src/genworld.cpp index 925fd5c83d..e073ced06a 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -147,6 +147,7 @@ static void _GenerateWorld() HandleGeneratingWorldAbortion(); return; } + UpdateTownCargoBitmap(); GenerateIndustries(); GenerateObjects(); GenerateTrees(); diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 0849c5ca15..87391dc387 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2074,6 +2074,8 @@ CommandCost CmdFoundTown(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 /* 't' can't be nullptr since 'random' is false outside scenedit */ assert(!random); + UpdateTownCargoBitmap(); + if (_current_company == OWNER_DEITY) { SetDParam(0, t->index); AddTileNewsItem(STR_NEWS_NEW_TOWN_UNSPONSORED, NT_INDUSTRY_OPEN, tile);