diff options
author | michi_cc <michi_cc@openttd.org> | 2009-01-05 20:29:00 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-01-05 20:29:00 +0000 |
commit | fc9b6b887235d255d2895f7ab6a731bf769b7c1e (patch) | |
tree | 6c0eacb1f6424929212970acf271de436ecb9df3 /src | |
parent | b4289b40f4eed580001899ea120a9d1fd8839a13 (diff) | |
download | openttd-fc9b6b887235d255d2895f7ab6a731bf769b7c1e.tar.xz |
(svn r14851) -Fix: A train reversing in a non-PBS block can't be stuck.
Diffstat (limited to 'src')
-rw-r--r-- | src/train_cmd.cpp | 4 |
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; } } |