diff options
author | tron <tron@openttd.org> | 2006-03-16 06:06:05 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-16 06:06:05 +0000 |
commit | 8a77808f650976f532bb43bef155edc5fd1943fe (patch) | |
tree | e0ea2149ed41fd18b12b507329c4ef90b48bb18e /bridge_map.h | |
parent | ec33376fa3355a840cd6ddb31687382e5251b1fa (diff) | |
download | openttd-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.h | 5 |
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) { |