summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2008-09-09 18:47:53 +0000
committermichi_cc <michi_cc@openttd.org>2008-09-09 18:47:53 +0000
commita7a7e2d3cc1c2220765510140810c442a27a4a4b (patch)
tree16fa05c76c2b2c36cdbabccc21750d496ef2a3cd /src
parent0757669c49ef0f22d4938cd9c3eef0b4c8e2e2e7 (diff)
downloadopenttd-a7a7e2d3cc1c2220765510140810c442a27a4a4b.tar.xz
(svn r14284) -Fix (r13958): Trains would not look ahead and extend their reservation on a waypoint tile in all cases.
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 328c39e88..3c01f435a 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -2325,8 +2325,8 @@ static void CheckNextTrainTile(Vehicle *v)
/* Don't do any look-ahead if path_backoff_interval is 255. */
if (_settings_game.pf.path_backoff_interval == 255) return;
- /* Exit if we reached our destination or are inside a depot. */
- if ((v->tile == v->dest_tile && !v->current_order.IsType(OT_GOTO_STATION)) || v->u.rail.track & TRACK_BIT_DEPOT) return;
+ /* Exit if we reached our destination depot or are inside a depot. */
+ if ((v->tile == v->dest_tile && v->current_order.IsType(OT_GOTO_DEPOT)) || v->u.rail.track & TRACK_BIT_DEPOT) return;
/* Exit if we are on a station tile and are going to stop. */
if (IsRailwayStationTile(v->tile) && v->current_order.ShouldStopAtStation(v, GetStationIndex(v->tile))) return;
/* Exit if the current order doesn't have a destination, but the train has orders. */