summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-02-07 12:47:29 +0000
committercelestar <celestar@openttd.org>2005-02-07 12:47:29 +0000
commitf758bd769b2a523ac5b959d7a53a25972e034cc4 (patch)
tree373798378f445417ebe105837ea4ea915d874958 /train_cmd.c
parentb1baa4ed8bdfa43d5476da039afd71a424e56c7f (diff)
downloadopenttd-f758bd769b2a523ac5b959d7a53a25972e034cc4.tar.xz
(svn r1841) -Fix: [ 1117538 ] non-stop orders are no longer accidently skipped
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 3ab59828b..b78c9f1a1 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1891,7 +1891,7 @@ static bool ProcessTrainOrder(Vehicle *v)
// check if we've reached a non-stop station while TTDPatch nonstop is enabled..
if (_patches.new_nonstop && v->current_order.flags & OF_NON_STOP &&
- v->current_order.station == _map2[v->tile]) {
+ v->current_order.station == _map2[v->tile] && IsTileType(v->tile, MP_STATION) ) {
v->cur_order_index++;
}