summaryrefslogtreecommitdiff
path: root/rail.h
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 /rail.h
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 'rail.h')
-rw-r--r--rail.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail.h b/rail.h
index db25c0528..d756a3b87 100644
--- a/rail.h
+++ b/rail.h
@@ -337,7 +337,7 @@ static inline bool HasSignalOnTrack(TileIndex tile, Track track)
{
assert(IsValidTrack(track));
return
- GetRailTileType(tile) == RAIL_TYPE_SIGNALS &&
+ GetRailTileType(tile) == RAIL_TILE_SIGNALS &&
(_m[tile].m3 & SignalOnTrack(track)) != 0;
}
@@ -352,7 +352,7 @@ static inline bool HasSignalOnTrackdir(TileIndex tile, Trackdir trackdir)
{
assert (IsValidTrackdir(trackdir));
return
- GetRailTileType(tile) == RAIL_TYPE_SIGNALS &&
+ GetRailTileType(tile) == RAIL_TILE_SIGNALS &&
_m[tile].m3 & SignalAlongTrackdir(trackdir);
}