summaryrefslogtreecommitdiff
path: root/rail_map.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-12 12:50:40 +0000
committercelestar <celestar@openttd.org>2006-04-12 12:50:40 +0000
commite81a1821f105c66090e24262a9d56663150e58c9 (patch)
tree24bd666ef4dcad62f0ccdd40ac5891d7056cf6aa /rail_map.h
parent7b6e932d82b60088d63cbdb947bd81dae01de404 (diff)
downloadopenttd-e81a1821f105c66090e24262a9d56663150e58c9.tar.xz
(svn r4384) -Codechange: rail drawing code
-Added a function to obtain the axis of a waypoint -Moved the waypoint layout tables from the depot layout tables into an own one -Use GetRailTileSubtype
Diffstat (limited to 'rail_map.h')
-rw-r--r--rail_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h
index 1fe1d71f4..08f6e5db3 100644
--- a/rail_map.h
+++ b/rail_map.h
@@ -144,6 +144,11 @@ static inline void ClearCustomWaypointSprite(TileIndex t)
CLRBIT(_m[t].m3, 4);
}
+static inline Axis GetWaypointAxis(TileIndex t)
+{
+ return HASBIT(_m[t].m5, 0) ? AXIS_Y : AXIS_X;
+}
+
typedef enum SignalType {
SIGTYPE_NORMAL = 0, // normal signal