tunnel_map.h
changeset 5661 6c6145677e7c
parent 4666 850b5b6e4bac
--- a/tunnel_map.h	Fri Dec 29 07:49:51 2006 +0000
+++ b/tunnel_map.h	Fri Dec 29 09:10:44 2006 +0000
@@ -35,6 +35,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);