(svn r1965) - Fix: [NPF] Forgot to update one line where NPFGetFlag() should have been used two commits ago.
authormatthijs
Tue, 08 Mar 2005 20:13:21 +0000
changeset 1461 b1505c82ebae
parent 1460 ebd1cfae9588
child 1462 f487048c5748
(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)
train_cmd.c
--- a/train_cmd.c	Tue Mar 08 19:59:56 2005 +0000
+++ b/train_cmd.c	Tue Mar 08 20:13:21 2005 +0000
@@ -1817,7 +1817,7 @@
 			/* 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;