mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r14850) -Fix [FS#2503]: Reversing a stuck train that is then not stuck anymore did not always reset the waiting timer.
This commit is contained in:
parent
809d9bc498
commit
f9f9bb9c3c
@ -3136,7 +3136,10 @@ bool TryPathReserve(Vehicle *v, bool mark_as_stuck, bool first_tile_okay)
|
||||
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);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user