summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/train_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index e71ef9e7b..ea4a80674 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -1941,6 +1941,10 @@ static void ReverseTrainDirection(Vehicle *v)
/* Do not wait for a way out when we're still loading */
MarkTrainAsStuck(v);
}
+ } else if (HasBit(v->u.rail.flags, VRF_TRAIN_STUCK)) {
+ /* A train not inside a PBS block can't be stuck. */
+ ClrBit(v->u.rail.flags, VRF_TRAIN_STUCK);
+ v->load_unload_time_rem = 0;
}
}