Fix cc39fa9: New orders are non-stop by default (#8689)
[openttd-github.git] / bin / ai / compat_1.5.nut
blob23944149f6ae8fcf994f3c282617b11c4c7fdf9d
1 /*
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/>.
6 */
8 AILog.Info("1.5 API compatibility in effect.");
10 /* 1.9 adds a vehicle type parameter. */
11 AIBridge._GetName <- AIBridge.GetName;
12 AIBridge.GetName <- function(bridge_id)
14 return AIBridge._GetName(bridge_id, AIVehicle.VT_RAIL);
17 /* 1.9 adds parent_group_id to CreateGroup function */
18 AIGroup._CreateGroup <- AIGroup.CreateGroup;
19 AIGroup.CreateGroup <- function(vehicle_type)
21 return AIGroup._CreateGroup(vehicle_type, AIGroup.GROUP_INVALID);