mirror of https://github.com/OpenTTD/OpenTTD
(svn r14851) -Fix: A train reversing in a non-PBS block can't be stuck.
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 */
|
/* Do not wait for a way out when we're still loading */
|
||||||
MarkTrainAsStuck(v);
|
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