mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 06:52:05 +01:00
Change: Give AI/GSBridge::GetName an extra parameter to refer the vehicle type (#6988)
This commit is contained in:
committed by
Charles Pigott
parent
029c48cf4a
commit
1e5a6765d9
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user