mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r14851) -Fix: A train reversing in a non-PBS block can't be stuck.
This commit is contained in:
parent
f9f9bb9c3c
commit
c9d25e20f0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user