mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-07 11:45:45 +01:00
Fix #9937: Station industries_near incorrect after removing part moved sign
RecomputeCatchment was being called before moving the sign tile instead of afterwards
This commit is contained in:
parent
f72b9fa767
commit
19af139631
@ -752,7 +752,6 @@ void Station::AfterStationTileSetChange(bool adding, StationType type)
|
|||||||
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
|
InvalidateWindowData(WC_STATION_LIST, this->owner, 0);
|
||||||
} else {
|
} else {
|
||||||
MarkCatchmentTilesDirty();
|
MarkCatchmentTilesDirty();
|
||||||
this->RecomputeCatchment();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@ -776,6 +775,7 @@ void Station::AfterStationTileSetChange(bool adding, StationType type)
|
|||||||
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
|
InvalidateWindowData(WC_SELECT_STATION, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
DeleteStationIfEmpty(this);
|
DeleteStationIfEmpty(this);
|
||||||
|
this->RecomputeCatchment();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user