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 | f9f9bb9c3cb2c671642c35bf1a69d9b119b441bc (patch) | |
tree | 893d6e6adff9280736071fb899ba6f464846cb83 | |
parent | 809d9bc498fe2c737cd18e3cdb9186e42dfea8d4 (diff) | |
download | openttd-f9f9bb9c3cb2c671642c35bf1a69d9b119b441bc.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; } |