summaryrefslogtreecommitdiff
path: root/bin/game
diff options
context:
space:
mode:
Diffstat (limited to 'bin/game')
-rw-r--r--bin/game/compat_1.2.nut7
-rw-r--r--bin/game/compat_1.3.nut7
-rw-r--r--bin/game/compat_1.4.nut7
-rw-r--r--bin/game/compat_1.5.nut7
-rw-r--r--bin/game/compat_1.6.nut7
-rw-r--r--bin/game/compat_1.7.nut7
-rw-r--r--bin/game/compat_1.8.nut7
7 files changed, 49 insertions, 0 deletions
diff --git a/bin/game/compat_1.2.nut b/bin/game/compat_1.2.nut
index aa5d48c3a..7822a44d0 100644
--- a/bin/game/compat_1.2.nut
+++ b/bin/game/compat_1.2.nut
@@ -23,3 +23,10 @@ GSNews.Create <- function(type, text, company)
{
return GSNews._Create(type, text, company, GSNews.NR_NONE, 0);
}
+
+/* 1.9 adds a vehicle type parameter. */
+GSBridge._GetName <- GSBridge.GetName;
+GSBridge.GetName <- function(bridge_id)
+{
+ return GSBridge._GetName(bridge_id, GSVehicle.VT_RAIL);
+}
diff --git a/bin/game/compat_1.3.nut b/bin/game/compat_1.3.nut
index 78a03534d..0d7a2afb6 100644
--- a/bin/game/compat_1.3.nut
+++ b/bin/game/compat_1.3.nut
@@ -23,3 +23,10 @@ GSNews.Create <- function(type, text, company)
{
return GSNews._Create(type, text, company, GSNews.NR_NONE, 0);
}
+
+/* 1.9 adds a vehicle type parameter. */
+GSBridge._GetName <- GSBridge.GetName;
+GSBridge.GetName <- function(bridge_id)
+{
+ return GSBridge._GetName(bridge_id, GSVehicle.VT_RAIL);
+}
diff --git a/bin/game/compat_1.4.nut b/bin/game/compat_1.4.nut
index a00431ed6..3ff887727 100644
--- a/bin/game/compat_1.4.nut
+++ b/bin/game/compat_1.4.nut
@@ -15,3 +15,10 @@ GSNews.Create <- function(type, text, company)
{
return GSNews._Create(type, text, company, GSNews.NR_NONE, 0);
}
+
+/* 1.9 adds a vehicle type parameter. */
+GSBridge._GetName <- GSBridge.GetName;
+GSBridge.GetName <- function(bridge_id)
+{
+ return GSBridge._GetName(bridge_id, GSVehicle.VT_RAIL);
+}
diff --git a/bin/game/compat_1.5.nut b/bin/game/compat_1.5.nut
index 96a7647ff..b29a8ed2f 100644
--- a/bin/game/compat_1.5.nut
+++ b/bin/game/compat_1.5.nut
@@ -8,3 +8,10 @@
*/
GSLog.Info("1.5 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);
+}
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);
+}
diff --git a/bin/game/compat_1.7.nut b/bin/game/compat_1.7.nut
index 1290443c4..b4c4d1bb3 100644
--- a/bin/game/compat_1.7.nut
+++ b/bin/game/compat_1.7.nut
@@ -8,3 +8,10 @@
*/
GSLog.Info("1.7 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);
+}
diff --git a/bin/game/compat_1.8.nut b/bin/game/compat_1.8.nut
index 6acdbc060..5aac3f8c1 100644
--- a/bin/game/compat_1.8.nut
+++ b/bin/game/compat_1.8.nut
@@ -8,3 +8,10 @@
*/
GSLog.Info("1.8 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);
+}