summaryrefslogtreecommitdiff
path: root/src/bridge.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-02 20:59:54 +0000
committerrubidium <rubidium@openttd.org>2011-05-02 20:59:54 +0000
commitff143c67085ad22abb5f6920873fd0ff9eddf603 (patch)
treef4f5fe046bd9b07d8a9c20130d7e115eb80f45ba /src/bridge.h
parentcf30941fab66fe6232e5b15b59ebedc4ea430e1e (diff)
downloadopenttd-ff143c67085ad22abb5f6920873fd0ff9eddf603.tar.xz
(svn r22413) -Document: even more stuff
Diffstat (limited to 'src/bridge.h')
-rw-r--r--src/bridge.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bridge.h b/src/bridge.h
index 521c3f128..badf045e3 100644
--- a/src/bridge.h
+++ b/src/bridge.h
@@ -59,6 +59,11 @@ extern BridgeSpec _bridge[MAX_BRIDGES];
Foundation GetBridgeFoundation(Slope tileh, Axis axis);
bool HasBridgeFlatRamp(Slope tileh, Axis axis);
+/**
+ * Get the specification of a bridge type.
+ * @param i The type of bridge to get the specification for.
+ * @return The specification.
+ */
static inline const BridgeSpec *GetBridgeSpec(BridgeType i)
{
assert(i < lengthof(_bridge));