summaryrefslogtreecommitdiff
path: root/npf.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-05-09 08:17:33 +0000
committerrubidium <rubidium@openttd.org>2006-05-09 08:17:33 +0000
commit9b1bbf72ee7ebb545ba7dc0ea11a84fc18b11c45 (patch)
tree975779e5070a23a2c674c5848eaf2fef8b8d766a /npf.c
parenta0e387597ac53c810a24a01521aa3e802964e8d5 (diff)
downloadopenttd-9b1bbf72ee7ebb545ba7dc0ea11a84fc18b11c45.tar.xz
(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
Diffstat (limited to 'npf.c')
-rw-r--r--npf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/npf.c b/npf.c
index 274ce274b..d13c36007 100644
--- a/npf.c
+++ b/npf.c
@@ -625,7 +625,7 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current)
DEBUG(npf, 5)("Expanded into trackdir: %d, remaining trackdirs: 0x%X", dst_trackdir, trackdirbits);
/* Check for oneway signal against us */
- if (IsTileType(dst_tile, MP_RAILWAY) && GetRailTileType(dst_tile) == RAIL_TYPE_SIGNALS) {
+ if (IsTileType(dst_tile, MP_RAILWAY) && GetRailTileType(dst_tile) == RAIL_TILE_SIGNALS) {
if (HasSignalOnTrackdir(dst_tile, ReverseTrackdir(dst_trackdir)) && !HasSignalOnTrackdir(dst_tile, dst_trackdir))
// if one way signal not pointing towards us, stop going in this direction.
break;