mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Generate unit_id for helipads
fixes mission scripting error (1748) cherry-picked from 676a256
This commit is contained in:
parent
d710c2631a
commit
bb1e314260
@ -6,6 +6,8 @@ Saves from 5.0.0 are compatible with 5.0.1.
|
||||
|
||||
## Fixes
|
||||
|
||||
* **[Mission Generation]** Fixed mission scripting error when using a dedicated server.
|
||||
|
||||
# 5.0.0
|
||||
|
||||
Saves from 4.x are not compatible with 5.0.
|
||||
|
||||
@ -600,7 +600,7 @@ class HelipadGenerator:
|
||||
for i, helipad in enumerate(self.cp.helipads):
|
||||
name = self.cp.name + "_helipad_" + str(i)
|
||||
logging.info("Generating helipad static : " + name)
|
||||
pad = InvisibleFARP(name=name)
|
||||
pad = InvisibleFARP(unit_id=self.m.next_unit_id(), name=name)
|
||||
pad.position = Point(helipad.x, helipad.y)
|
||||
pad.heading = helipad.heading.degrees
|
||||
sg = unitgroup.StaticGroup(self.m.next_group_id(), name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user