diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-02-15 20:14:50 +0000 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-03 09:15:39 +0100 |
commit | 5a5944867dfeaa556ec78c23af4796adb28a6a9f (patch) | |
tree | f735f1c944bbf765bbcdfe9311cc7ed86ed71135 /bin/ai/compat_0.7.nut | |
parent | 5d3ccae6c5bd3f328ad0d8e68ae7c69451b9ca48 (diff) | |
download | openttd-5a5944867dfeaa556ec78c23af4796adb28a6a9f.tar.xz |
Add: Add parent_group_id parameter to CreateGroup()
Diffstat (limited to 'bin/ai/compat_0.7.nut')
-rw-r--r-- | bin/ai/compat_0.7.nut | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut index 98c03c673..86ab06bba 100644 --- a/bin/ai/compat_0.7.nut +++ b/bin/ai/compat_0.7.nut @@ -374,3 +374,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); +} |