mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(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)
This commit is contained in:
parent
aea57f2026
commit
4206d8f955
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user