Avoid unnecessary redrawing of vehicle list windows
Redraw info section every tick if values have changed
This commit is contained in:
@@ -2158,7 +2158,7 @@ static void LoadUnloadVehicle(Vehicle *front)
|
||||
}
|
||||
|
||||
if (dirty_vehicle) {
|
||||
SetWindowDirty(GetWindowClassForVehicleType(front->type), front->owner);
|
||||
DirtyVehicleListWindowForVehicle(front);
|
||||
SetWindowDirty(WC_VEHICLE_DETAILS, front->index);
|
||||
front->MarkDirty();
|
||||
}
|
||||
|
Reference in New Issue
Block a user