* Updates town growth rate. * @param t The town to update growth rate for */
| 3861 | * @param t The town to update growth rate for |
| 3862 | */ |
| 3863 | static void UpdateTownGrowthRate(Town *t) |
| 3864 | { |
| 3865 | if (t->flags.Test(TownFlag::CustomGrowth)) return; |
| 3866 | uint old_rate = t->growth_rate; |
| 3867 | t->growth_rate = GetNormalGrowthRate(t); |
| 3868 | UpdateTownGrowCounter(t, old_rate); |
| 3869 | SetWindowDirty(WC_TOWN_VIEW, t->index); |
| 3870 | } |
| 3871 | |
| 3872 | /** |
| 3873 | * Updates town growth state (whether it is growing or not). |
no test coverage detected