Ensure town cargo bitmap correctly set after town creation

This commit is contained in:
Jonathan G Rennison
2019-06-09 20:47:27 +01:00
parent 5e9dd1ff35
commit 9519c5c1fb
2 changed files with 3 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ static void _GenerateWorld()
HandleGeneratingWorldAbortion();
return;
}
UpdateTownCargoBitmap();
GenerateIndustries();
GenerateObjects();
GenerateTrees();

View File

@@ -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);