summaryrefslogtreecommitdiff
path: root/src/bridge_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-21 11:24:51 +0000
committerrubidium <rubidium@openttd.org>2014-09-21 11:24:51 +0000
commit9daf7e749ccb00873443e2261379bf31999664d9 (patch)
treec6121f8173938736242b84b2830058d330f1da9a /src/bridge_map.h
parent982f5a6aa2f600106f9bd292ebefcef52e6e65e6 (diff)
downloadopenttd-9daf7e749ccb00873443e2261379bf31999664d9.tar.xz
(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible
Diffstat (limited to 'src/bridge_map.h')
-rw-r--r--src/bridge_map.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/bridge_map.h b/src/bridge_map.h
index be10ab8c7..74c6974db 100644
--- a/src/bridge_map.h
+++ b/src/bridge_map.h
@@ -38,18 +38,6 @@ static inline bool IsBridgeTile(TileIndex t)
}
/**
- * checks for the possibility that a bridge may be on this tile
- * These are in fact all the tile types on which a bridge can be found
- * @param t The tile to analyze
- * @return true if a bridge might be present
- */
-static inline bool MayHaveBridgeAbove(TileIndex t)
-{
- return IsTileType(t, MP_CLEAR) || IsTileType(t, MP_RAILWAY) || IsTileType(t, MP_ROAD) ||
- IsTileType(t, MP_WATER) || IsTileType(t, MP_TUNNELBRIDGE) || IsTileType(t, MP_OBJECT);
-}
-
-/**
* checks if a bridge is set above the ground of this tile
* @param t The tile to analyze
* @return true if a bridge is detected above