Fix trains not reversing in station when front is on a diagonal rail piece

This commit is contained in:
Jonathan G Rennison
2019-02-03 09:34:32 +00:00
parent 47b8f9b286
commit f64cb4048e

View File

@@ -3282,8 +3282,7 @@ bool TryPathReserve(Train *v, bool mark_as_stuck, bool first_tile_okay)
static bool CheckReverseTrain(const Train *v) static bool CheckReverseTrain(const Train *v)
{ {
if (_settings_game.difficulty.line_reverse_mode != 0 || if (_settings_game.difficulty.line_reverse_mode != 0 ||
v->track == TRACK_BIT_DEPOT || v->track & TRACK_BIT_WORMHOLE || v->track == TRACK_BIT_DEPOT || v->track & TRACK_BIT_WORMHOLE) {
!(v->direction & 1)) {
return false; return false;
} }