Fix #9937: Station industries_near incorrect after removing part moved sign

RecomputeCatchment was being called before moving the sign tile
instead of afterwards
pull/407/head
Jonathan G Rennison 2 years ago committed by Loïc Guilloux
parent f72b9fa767
commit 19af139631

@ -752,7 +752,6 @@ void Station::AfterStationTileSetChange(bool adding, StationType type)
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
} else {
MarkCatchmentTilesDirty();
this->RecomputeCatchment();
}
switch (type) {
@ -776,6 +775,7 @@ void Station::AfterStationTileSetChange(bool adding, StationType type)
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
} else {
DeleteStationIfEmpty(this);
this->RecomputeCatchment();
}
}

Loading…
Cancel
Save