summaryrefslogtreecommitdiff
path: root/bin/game/compat_1.6.nut
diff options
context:
space:
mode:
Diffstat (limited to 'bin/game/compat_1.6.nut')
-rw-r--r--bin/game/compat_1.6.nut7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/game/compat_1.6.nut b/bin/game/compat_1.6.nut
index d25189db2..a3f597528 100644
--- a/bin/game/compat_1.6.nut
+++ b/bin/game/compat_1.6.nut
@@ -8,3 +8,10 @@
*/
GSLog.Info("1.6 API compatibility in effect.");
+
+/* 1.9 adds a vehicle type parameter. */
+GSBridge._GetName <- GSBridge.GetName;
+GSBridge.GetName <- function(bridge_id)
+{
+ return GSBridge._GetName(bridge_id, GSVehicle.VT_RAIL);
+}