(svn r16901) -Fix [FS#3046] (rpbs): when marking trains stuck don't reset the unload counter/stuck when the vehicle is unloading. It'll be automatically reset once the vehicle wants to leave the station
This commit is contained in:
@@ -1644,6 +1644,10 @@ static void MarkTrainAsStuck(Train *v)
|
||||
if (!HasBit(v->flags, VRF_TRAIN_STUCK)) {
|
||||
/* It is the first time the problem occured, set the "train stuck" flag. */
|
||||
SetBit(v->flags, VRF_TRAIN_STUCK);
|
||||
|
||||
/* When loading the vehicle is already stopped. No need to change that. */
|
||||
if (v->current_order.IsType(OT_LOADING)) return;
|
||||
|
||||
v->load_unload_time_rem = 0;
|
||||
|
||||
/* Stop train */
|
||||
|
Reference in New Issue
Block a user