Speed up authority and advertisement zoning

This commit is contained in:
Pavel Stupnikov
2019-02-12 17:36:40 +03:00
parent 6f1b0682da
commit c2d889eab3
2 changed files with 95 additions and 3 deletions

View File

@@ -1803,6 +1803,9 @@ void ResetTownsGrowthTiles() {
_towns_growth_tiles.clear();
}
extern TileIndex _closest_cache_ref;
/**
* Does the actual town creation.
*
@@ -1897,6 +1900,7 @@ static void DoCreateTown(Town *t, TileIndex tile, uint32 townnameparts, TownSize
} while (--i);
t->cache.num_houses -= x;
_closest_cache_ref = INVALID_TILE;
UpdateTownRadius(t);
UpdateTownMaxPass(t);
UpdateAirportsNoise();