mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
a258833
fixed a bug but as a result causes the station list to be rebuilt every time (once per game tick) a vehicle loads/unloads. Instead just mark the window for redraw. (cherry picked from commitf20d241e81
)
This commit is contained in:
parent
69af0e8f26
commit
5c35a87ed7
@ -2410,7 +2410,7 @@ static void LoadUnloadVehicle(Vehicle *front)
|
||||
if (dirty_station) {
|
||||
st->MarkTilesDirty(true);
|
||||
SetWindowDirty(WC_STATION_VIEW, st->index);
|
||||
InvalidateWindowData(WC_STATION_LIST, st->owner);
|
||||
SetWindowDirty(WC_STATION_LIST, st->owner);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user