summaryrefslogtreecommitdiff
path: root/src/bridge.h
diff options
context:
space:
mode:
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));