Zoning: Ensure that screen is refreshed when necessary in authority overlay

This commit is contained in:
Jonathan G Rennison
2018-05-11 00:03:49 +01:00
parent f373a67610
commit 793a446062
4 changed files with 20 additions and 1 deletions

View File

@@ -694,6 +694,9 @@ static CommandCost BuildStationPart(Station **st, DoCommandFlag flags, bool reus
(*st)->string_id = GenerateStationName(*st, area.tile, name_class);
if (Company::IsValidID(_current_company)) {
if (_local_company == _current_company && !HasBit((*st)->town->have_ratings, _current_company)) {
ZoningTownAuthorityRatingChange();
}
SetBit((*st)->town->have_ratings, _current_company);
}
}