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 | 666c0a379dee78fd51c35e5275b7761f9a1ebf61 (patch) | |
tree | e0ea2149ed41fd18b12b507329c4ef90b48bb18e /bridge_map.h | |
parent | 1ac97fe0088096a265660dc5efa4478fe0db4b06 (diff) | |
download | openttd-666c0a379dee78fd51c35e5275b7761f9a1ebf61.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) { |