(svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics.

This commit is contained in:
peter1138
2007-06-08 09:35:39 +00:00
parent 29f6ae952c
commit 9c66082b07
5 changed files with 16 additions and 7 deletions

View File

@@ -1697,7 +1697,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
InvalidateWindow(v->GetVehicleListWindowClass(), v->owner);
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
st->MarkTilesDirty();
st->MarkTilesDirty(true);
v->MarkDirty();
if (result & 2) InvalidateWindow(WC_STATION_VIEW, last_visited);