summaryrefslogtreecommitdiff
path: root/bin/ai/compat_1.4.nut
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-02-15 20:14:50 +0000
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-03-03 09:15:39 +0100
commit5a5944867dfeaa556ec78c23af4796adb28a6a9f (patch)
treef735f1c944bbf765bbcdfe9311cc7ed86ed71135 /bin/ai/compat_1.4.nut
parent5d3ccae6c5bd3f328ad0d8e68ae7c69451b9ca48 (diff)
downloadopenttd-5a5944867dfeaa556ec78c23af4796adb28a6a9f.tar.xz
Add: Add parent_group_id parameter to CreateGroup()
Diffstat (limited to 'bin/ai/compat_1.4.nut')
-rw-r--r--bin/ai/compat_1.4.nut7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ai/compat_1.4.nut b/bin/ai/compat_1.4.nut
index 169ead959..4bbb97160 100644
--- a/bin/ai/compat_1.4.nut
+++ b/bin/ai/compat_1.4.nut
@@ -15,3 +15,10 @@ AIBridge.GetName <- function(bridge_id)
{
return AIBridge._GetName(bridge_id, AIVehicle.VT_RAIL);
}
+
+/* 1.9 adds parent_group_id to CreateGroup function */
+AIGroup._CreateGroup <- AIGroup.CreateGroup;
+AIGroup.CreateGroup <- function(vehicle_type)
+{
+ return AIGroup._CreateGroup(vehicle_type, AIGroup.GROUP_INVALID);
+}