(svn r14851) -Fix: A train reversing in a non-PBS block can't be stuck.

This commit is contained in:
michi_cc 2009-01-05 20:29:00 +00:00
parent f9f9bb9c3c
commit c9d25e20f0
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}