Mercurial > hg > openttd
diff src/train_cmd.cpp @ 10587:f03dcfd93ae5 draft
(svn r14850) -Fix [FS#2503]: Reversing a stuck train that is then not stuck anymore did not always reset the waiting timer.
author | michi_cc <michi_cc@openttd.org> |
---|---|
date | Mon, 05 Jan 2009 20:28:56 +0000 (2009-01-05) |
parents | 4436af164dbd |
children | 1c8fb7b3873a |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3136,7 +3136,10 @@ 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; }