Fix crash when loading games with town signs on top of objects
This commit is contained in:
@@ -587,8 +587,6 @@ Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY)
|
||||
AI::BroadcastNewEvent(new ScriptEventCompanyNew(c->index), c->index);
|
||||
Game::NewEvent(new ScriptEventCompanyNew(c->index));
|
||||
|
||||
if (!is_ai) UpdateAllTownVirtCoords(); //coloured rating
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
@@ -864,6 +862,7 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
||||
* all clients so everything is in sync */
|
||||
SyncCompanySettings();
|
||||
|
||||
UpdateAllTownVirtCoords(); // CityMania (for colouring towns)
|
||||
MarkWholeScreenDirty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user