2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 GSLog
.Info("1.8 API compatibility in effect.");
10 /* 1.9 adds a vehicle type parameter. */
11 GSBridge
._GetName
<- GSBridge
.GetName
;
12 GSBridge
.GetName
<- function(bridge_id
)
14 return GSBridge
._GetName(bridge_id
, GSVehicle
.VT_RAIL
);
17 /* 1.11 adds a tile parameter. */
18 GSCompany
._ChangeBankBalance
<- GSCompany
.ChangeBankBalance
;
19 GSCompany
.ChangeBankBalance
<- function(company
, delta
, expenses_type
)
21 return GSCompany
._ChangeBankBalance(company
, delta
, expenses_type
, GSMap
.TILE_INVALID
);
24 /* 13 really checks RoadType against RoadType */
25 GSRoad
._HasRoadType
<- GSRoad
.HasRoadType
;
26 GSRoad
.HasRoadType
<- function(tile
, road_type
)
28 local list
= GSRoadTypeList(GSRoad
.GetRoadTramType(road_type
));
29 foreach (rt
, _
in list
) {
30 if (GSRoad
._HasRoadType(tile
, rt
)) {