summaryrefslogtreecommitdiff
path: root/bridge_map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-16 06:06:05 +0000
committertron <tron@openttd.org>2006-03-16 06:06:05 +0000
commit8a77808f650976f532bb43bef155edc5fd1943fe (patch)
treee0ea2149ed41fd18b12b507329c4ef90b48bb18e /bridge_map.h
parentec33376fa3355a840cd6ddb31687382e5251b1fa (diff)
downloadopenttd-8a77808f650976f532bb43bef155edc5fd1943fe.tar.xz
(svn r3899) Use wrapper functions to make more clear how deleting stuff under bridges works; also remove an unnecessary local variable
Diffstat (limited to 'bridge_map.h')
-rw-r--r--bridge_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge_map.h b/bridge_map.h
index 4f4b33d53..610728060 100644
--- a/bridge_map.h
+++ b/bridge_map.h
@@ -45,6 +45,11 @@ static inline bool IsClearUnderBridge(TileIndex t)
return GB(_m[t].m5, 3, 3) == 0;
}
+static inline bool IsWaterUnderBridge(TileIndex t)
+{
+ return GB(_m[t].m5, 3, 3) == 1;
+}
+
static inline bool IsTransportUnderBridge(TileIndex t)
{