summaryrefslogtreecommitdiff
path: root/src/bridge_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-11 13:54:01 +0000
committerrubidium <rubidium@openttd.org>2008-06-11 13:54:01 +0000
commit7f6382badd3ea4f2c21920c9951997d4b431d0a2 (patch)
tree93d0cf5e2656fbaec389d945c2682c766b5756c8 /src/bridge_map.h
parentdc5ceacd77b490ea7b1c719753704a744a80377c (diff)
downloadopenttd-7f6382badd3ea4f2c21920c9951997d4b431d0a2.tar.xz
(svn r13464) -Codechange: support NewGRF Action 0x05, type 12.
Diffstat (limited to 'src/bridge_map.h')
-rw-r--r--src/bridge_map.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bridge_map.h b/src/bridge_map.h
index fd82fbdab..309fc0dd4 100644
--- a/src/bridge_map.h
+++ b/src/bridge_map.h
@@ -200,5 +200,15 @@ static inline void MakeRailBridgeRamp(TileIndex t, Owner o, BridgeType bridgetyp
MakeBridgeRamp(t, o, bridgetype, d, TRANSPORT_RAIL, r);
}
+/**
+ * Make a bridge ramp for aqueducts.
+ * @param t the tile to make a bridge ramp
+ * @param o the new owner of the bridge ramp
+ * @param d the direction this ramp must be facing
+ */
+static inline void MakeAqueductBridgeRamp(TileIndex t, Owner o, DiagDirection d)
+{
+ MakeBridgeRamp(t, o, 0, d, TRANSPORT_WATER, 0);
+}
#endif /* BRIDGE_MAP_H */