summaryrefslogtreecommitdiff
path: root/bin/ai/compat_0.7.nut
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ai/compat_0.7.nut')
-rw-r--r--bin/ai/compat_0.7.nut7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut
index 44e6acff9..98c03c673 100644
--- a/bin/ai/compat_0.7.nut
+++ b/bin/ai/compat_0.7.nut
@@ -367,3 +367,10 @@ AIOrder.AIOF_UNLOAD_FLAGS <- AIOrder.OF_UNLOAD_FLAGS
AIOrder.AIOF_LOAD_FLAGS <- AIOrder.OF_LOAD_FLAGS
AIOrder.AIOF_DEPOT_FLAGS <- AIOrder.OF_DEPOT_FLAGS
AIOrder.AIOF_INVALID <- AIOrder.OF_INVALID
+
+/* 1.9 adds a vehicle type parameter. */
+AIBridge._GetName <- AIBridge.GetName;
+AIBridge.GetName <- function(bridge_id)
+{
+ return AIBridge._GetName(bridge_id, AIVehicle.VT_RAIL);
+}