From 1e5a6765d9553d85e4acfb68999921791b8dd560 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Thu, 31 Jan 2019 23:08:03 +0000 Subject: Change: Give AI/GSBridge::GetName an extra parameter to refer the vehicle type (#6988) --- bin/game/compat_1.4.nut | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/game/compat_1.4.nut') 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); +} -- cgit v1.2.3-70-g09d2