summaryrefslogtreecommitdiff
path: root/rail_map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-07 19:35:21 +0000
committertron <tron@openttd.org>2006-06-07 19:35:21 +0000
commit7fd88e57981e15cd8f2c11a2134e289dbe1b856e (patch)
tree5a6fb4aa93546ad194301d231de10ba5370ccc6f /rail_map.h
parent8992f9cb2bf20a1615f99735d13ade6b2535cbcf (diff)
downloadopenttd-7fd88e57981e15cd8f2c11a2134e289dbe1b856e.tar.xz
(svn r5155) - Remove the bridge branch merge (revision r5070)
Diffstat (limited to 'rail_map.h')
-rw-r--r--rail_map.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h
index 43166d671..44a42f9aa 100644
--- a/rail_map.h
+++ b/rail_map.h
@@ -81,6 +81,11 @@ static inline RailType GetRailTypeCrossing(TileIndex t)
return (RailType)GB(_m[t].m4, 0, 4);
}
+static inline RailType GetRailTypeOnBridge(TileIndex t)
+{
+ return (RailType)GB(_m[t].m3, 4, 4);
+}
+
static inline void SetRailType(TileIndex t, RailType r)
{
SB(_m[t].m3, 0, 4, r);
@@ -92,6 +97,11 @@ static inline void SetRailTypeCrossing(TileIndex t, RailType r)
SB(_m[t].m4, 0, 4, r);
}
+static inline void SetRailTypeOnBridge(TileIndex t, RailType r)
+{
+ SB(_m[t].m3, 4, 4, r);
+}
+
/** These are used to specify a single track.
* Can be translated to a trackbit with TrackToTrackbit */