Skip to content

Commit

Permalink
Ensure town cargo bitmap correctly set after town creation
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Jun 9, 2019
1 parent 5e9dd1f commit 9519c5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/genworld.cpp
Expand Up @@ -147,6 +147,7 @@ static void _GenerateWorld()
HandleGeneratingWorldAbortion();
return;
}
UpdateTownCargoBitmap();
GenerateIndustries();
GenerateObjects();
GenerateTrees();
Expand Down
2 changes: 2 additions & 0 deletions src/town_cmd.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 9519c5c

Please sign in to comment.