diff options
author | michi_cc <michi_cc@openttd.org> | 2009-01-05 20:28:56 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-01-05 20:28:56 +0000 |
commit | b4289b40f4eed580001899ea120a9d1fd8839a13 (patch) | |
tree | 893d6e6adff9280736071fb899ba6f464846cb83 | |
parent | cca22794d155b6a95724bf9cf25014c6d9dae281 (diff) | |
download | openttd-b4289b40f4eed580001899ea120a9d1fd8839a13.tar.xz |
(svn r14850) -Fix [FS#2503]: Reversing a stuck train that is then not stuck anymore did not always reset the waiting timer.
-rw-r--r-- | src/train_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 5521b0b8f..e71ef9e7b 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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; } |