mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 06:52:05 +01:00
Fix: VF_LOADING_FINISHED and VF_STOP_LOADING flags tested on wrong vehicle part. (#13063)
These flags are only set on the front part of a vehicle as they apply to the whole consist.
This commit is contained in:
@@ -1515,7 +1515,7 @@ uint8_t CalcPercentVehicleFilled(const Vehicle *front, StringID *colour)
|
||||
unloading += HasBit(v->vehicle_flags, VF_CARGO_UNLOADING) ? 1 : 0;
|
||||
loading |= !order_no_load &&
|
||||
(order_full_load || st->goods[v->cargo_type].HasRating()) &&
|
||||
!HasBit(v->vehicle_flags, VF_LOADING_FINISHED) && !HasBit(v->vehicle_flags, VF_STOP_LOADING);
|
||||
!HasBit(front->vehicle_flags, VF_LOADING_FINISHED) && !HasBit(front->vehicle_flags, VF_STOP_LOADING);
|
||||
cars++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user