mirror of https://github.com/OpenTTD/OpenTTD
(svn r14850) -Fix [FS#2503]: Reversing a stuck train that is then not stuck anymore did not always reset the waiting timer.
parent
809d9bc498
commit
f9f9bb9c3c
|
@ -3136,7 +3136,10 @@ bool TryPathReserve(Vehicle *v, bool mark_as_stuck, bool first_tile_okay)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HasBit(v->u.rail.flags, VRF_TRAIN_STUCK)) InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
|
if (HasBit(v->u.rail.flags, VRF_TRAIN_STUCK)) {
|
||||||
|
v->load_unload_time_rem = 0;
|
||||||
|
InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
|
||||||
|
}
|
||||||
ClrBit(v->u.rail.flags, VRF_TRAIN_STUCK);
|
ClrBit(v->u.rail.flags, VRF_TRAIN_STUCK);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue