Fix airport catchment overlay not being refreshed when upgrading/moving

This commit is contained in:
Jonathan G Rennison
2022-12-07 21:31:42 +00:00
parent 6a03e7ba97
commit 2b38022161

View File

@@ -2783,6 +2783,8 @@ CommandCost CmdBuildAirport(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
if (action == AIRPORT_UPGRADE) {
/* delete old airport if upgrading */
ZoningMarkDirtyStationCoverageArea(st);
for (uint i = 0; i < st->airport.GetNumHangars(); ++i) {
DeleteWindowById(
WC_VEHICLE_DEPOT, st->airport.GetHangarTile(i)