summaryrefslogtreecommitdiff
path: root/bin/game/compat_1.2.nut
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2019-01-31 23:08:03 +0000
committerCharles Pigott <charlespigott@googlemail.com>2019-01-31 23:08:03 +0000
commit1e5a6765d9553d85e4acfb68999921791b8dd560 (patch)
tree91fb62a35b362ae8fd16dd09abc85223bf3d9ffd /bin/game/compat_1.2.nut
parent029c48cf4a03b69838f3b347d0dcea9582f919e1 (diff)
downloadopenttd-1e5a6765d9553d85e4acfb68999921791b8dd560.tar.xz
Change: Give AI/GSBridge::GetName an extra parameter to refer the vehicle type (#6988)
Diffstat (limited to 'bin/game/compat_1.2.nut')
-rw-r--r--bin/game/compat_1.2.nut7
1 files changed, 7 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);
+}