Mercurial > hg > openttd
changeset 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 |
parents | 62d3b2269885 |
children | 1c8fb7b3873a |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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; }