diff options
author | matthijs <matthijs@openttd.org> | 2005-03-13 17:51:29 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-03-13 17:51:29 +0000 |
commit | 6367bda0bf4e6ce08051310223a2bf328c1fed6d (patch) | |
tree | 732898580f0956cf818a212884fab7166cab9255 /npf.c | |
parent | 106b78927e799579487f5019cdcfd010e8cbd791 (diff) | |
download | openttd-6367bda0bf4e6ce08051310223a2bf328c1fed6d.tar.xz |
(svn r2006) - Fix: [NPF] Wrong signal detection for last signal red detection. Multiple tracks per tile with only one signal were detected wrong. (HackyKid)
Diffstat (limited to 'npf.c')
-rw-r--r-- | npf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -343,7 +343,7 @@ int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* parent) { /* Determine extra costs */ /* Check for signals */ - if (IsTileType(tile, MP_RAILWAY) && (_map5[tile] & 0xC0) == 0x40) { + if (IsTileType(tile, MP_RAILWAY) && (_map5[tile] & 0xC0) == 0x40 && (_map3_lo[tile] & _signal_along_trackdir[trackdir]) != 0) { /* Ordinary track with signals */ if ((_map2[tile] & _signal_along_trackdir[trackdir]) == 0) { /* Signal facing us is red */ |