1
0
Fork 0

Fix: VF_LOADING_FINISHED and VF_STOP_LOADING flags tested on wrong vehicle part.

These flags are only set on the front part of a vehicle as they apply to the whole consist.
pull/13063/head
Peter Nelson 2024-11-07 00:00:42 +00:00
parent 884b93c4c0
commit 1f772e3201
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

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