Change: Only resort town directory window on population change if necessary
This commit is contained in:

committed by
Charles Pigott

parent
f2d230d91c
commit
22ba048c89
@@ -423,7 +423,7 @@ static void ChangePopulation(Town *t, int mod)
|
||||
InvalidateWindowData(WC_TOWN_VIEW, t->index); // Cargo requirements may appear/vanish for small populations
|
||||
if (_settings_client.gui.population_in_label) t->UpdateVirtCoord();
|
||||
|
||||
InvalidateWindowData(WC_TOWN_DIRECTORY, 0, TDIWD_FORCE_RESORT);
|
||||
InvalidateWindowData(WC_TOWN_DIRECTORY, 0, TDIWD_POPULATION_CHANGE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user