1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 17:09:10 +00:00

Fix a258833: Don't invalidate station list on vehicle load/unload. (#12112)

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.
This commit is contained in:
2024-02-18 12:20:11 +00:00
committed by GitHub
parent 8a1cea2ab6
commit f20d241e81

View File

@@ -1942,7 +1942,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);
}
}