summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-03-08 20:13:21 +0000
committermatthijs <matthijs@openttd.org>2005-03-08 20:13:21 +0000
commite9a17526833f4e2d13dd0a1e5e588ea0e09b86c0 (patch)
treea371e75dbd967e6d5fda2f5e25c1b08a951a8748 /train_cmd.c
parente7af60594b584521d90d504cde4032834734522b (diff)
downloadopenttd-e9a17526833f4e2d13dd0a1e5e588ea0e09b86c0.tar.xz
(svn r1965) - Fix: [NPF] Forgot to update one line where NPFGetFlag() should have been used two commits ago.
Message for last commit should have been: - Add: [NPF] Added penalty for curves, straighter paths are now preferred when the length is the same. (HackyKid)
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 99a499765..7cedb0354 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1817,7 +1817,7 @@ static bool CheckReverseTrain(Vehicle *v)
/* We didn't find anything, just keep on going straight ahead */
reverse_best = false;
} else {
- if (ftd.node.user_data[NPF_NODE_FLAGS] & NPF_FLAG_REVERSE)
+ if (NPFGetFlag(&ftd.node, NPF_FLAG_REVERSE))
reverse_best = true;
else
reverse_best = false;