1
0
Fork 0

Fix a258833: Don't invalidate station list on vehicle load/unload.

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.
pull/12112/head
Peter Nelson 2024-02-18 08:51:37 +00:00
parent 360fe8b0b6
commit 93d823a6b9
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -1942,7 +1942,7 @@ static void LoadUnloadVehicle(Vehicle *front)
if (dirty_station) { if (dirty_station) {
st->MarkTilesDirty(true); st->MarkTilesDirty(true);
SetWindowDirty(WC_STATION_VIEW, st->index); SetWindowDirty(WC_STATION_VIEW, st->index);
InvalidateWindowData(WC_STATION_LIST, st->owner); SetWindowDirty(WC_STATION_LIST, st->owner);
} }
} }