tunnel_map.h
branchcustombridgeheads
changeset 5592 fd60d4ecc921
parent 5591 8cd83b10634f
--- a/tunnel_map.h	Thu Dec 28 17:30:06 2006 +0000
+++ b/tunnel_map.h	Fri Dec 29 10:13:35 2006 +0000
@@ -26,6 +26,18 @@
 	return (TransportType)GB(_m[t].m5, 2, 2);
 }
 
+static inline bool HasTunnelSnowOrDesert(TileIndex t)
+{
+	assert(IsTunnelTile(t));
+	return HASBIT(_m[t].m4, 7);
+}
+
+static inline void SetTunnelSnowOrDesert(TileIndex t, bool snow_or_desert)
+{
+	assert(IsTunnelTile(t));
+	SB(_m[t].m4, 7, 1, snow_or_desert);
+}
+
 
 TileIndex GetOtherTunnelEnd(TileIndex);
 bool IsTunnelInWay(TileIndex, uint z);