bridge_map.h
changeset 5661 6c6145677e7c
parent 5573 afa6f92a71fd
--- a/bridge_map.h	Fri Dec 29 07:49:51 2006 +0000
+++ b/bridge_map.h	Fri Dec 29 09:10:44 2006 +0000
@@ -81,6 +81,19 @@
 }
 
 
+static inline bool HasBridgeSnowOrDesert(TileIndex t)
+{
+	assert(IsBridgeTile(t));
+	return HASBIT(_m[t].m4, 7);
+}
+
+
+static inline void SetBridgeSnowOrDesert(TileIndex t, bool snow_or_desert)
+{
+	assert(IsBridgeTile(t));
+	SB(_m[t].m4, 7, 1, snow_or_desert);
+}
+
 /**
  * Finds the end of a bridge in the specified direction starting at a middle tile
  */