diff --git a/changelog.md b/changelog.md index 59a20d76..c0ecb509 100644 --- a/changelog.md +++ b/changelog.md @@ -1,9 +1,7 @@ # 2.1.4 ## Fixes : -* **[UI]** Fixed an issue that prevent generating the mission (take off button no working) on old savegames. - -# 2.1.3 +* **[UI]** Fixed an issue that prevented generating the mission (take off button no working) on old savegames. ## Features/Improvements : * **[Units/Factions]** Added A-10C_2 to USA 2005 and Bluefor modern factions diff --git a/gen/armor.py b/gen/armor.py index 68c2aa55..abd6ccdb 100644 --- a/gen/armor.py +++ b/gen/armor.py @@ -184,6 +184,7 @@ class GroundConflictGenerator: for dcs_group, group in ally_groups: + # TODO : REPLACE EPRLS BY EPLRS once fix implemented in pydcs if hasattr(group.units[0], 'eprls'): if group.units[0].eprls: dcs_group.points[0].tasks.append(EPLRS(dcs_group.id)) diff --git a/gen/groundobjectsgen.py b/gen/groundobjectsgen.py index d1cd5378..4db56b80 100644 --- a/gen/groundobjectsgen.py +++ b/gen/groundobjectsgen.py @@ -80,6 +80,11 @@ class GroundObjectsGenerator: vehicle.heading = u.heading vehicle.player_can_drive = True vg.add_unit(vehicle) + + #TODO : REPLACE EPRLS BY EPLRS once fix implemented in pydcs + if hasattr(utype, 'eprls'): + if utype.eprls: + vg.points[0].tasks.append(EPLRS(vg.id)) else: vg = self.m.ship_group(side, g.name, utype, position=g.position, heading=g.units[0].heading)