fixed starting bat; updated escort options for Strikes

This commit is contained in:
Vasyl Horbachenko 2019-03-31 19:55:27 +03:00
parent 310db66c22
commit 6ec14e744e
2 changed files with 3 additions and 3 deletions

View File

@ -69,12 +69,12 @@ class StrikeOperation(Operation):
self.airgen.generate_ground_attack_strikegroup(*assigned_units_split(planes_flights), self.airgen.generate_ground_attack_strikegroup(*assigned_units_split(planes_flights),
targets=[(mp, pos) for (n, mp, pos) in targets], targets=[(mp, pos) for (n, mp, pos) in targets],
at=self.attackers_starting_position, at=self.attackers_starting_position,
escort=True) escort=len(self.sead) == 0)
self.airgen.generate_sead_strikegroup(*assigned_units_split(self.sead), self.airgen.generate_sead_strikegroup(*assigned_units_split(self.sead),
targets=[(mp, pos) for (n, mp, pos) in sead_targets], targets=[(mp, pos) for (n, mp, pos) in sead_targets],
at=self.attackers_starting_position, at=self.attackers_starting_position,
escort=False) escort=len(self.sead) > 0)
heli_flights = {k: v for k, v in self.strikegroup.items() if k in helicopters.helicopter_map.values()} heli_flights = {k: v for k, v in self.strikegroup.items() if k in helicopters.helicopter_map.values()}
if heli_flights: if heli_flights:

View File

@ -48,7 +48,7 @@ def _mk_archieve():
os.system("pyinstaller.exe pyinstaller.spec") os.system("pyinstaller.exe pyinstaller.spec")
archieve = ZipFile(path, "w") archieve = ZipFile(path, "w")
archieve.writestr("dcs_liberation.bat", "cd dist\\dcs_liberation;\nliberation_main \"%UserProfile%\\Saved Games\" \"{}\"".format(VERSION)) archieve.writestr("dcs_liberation.bat", "cd dist\\dcs_liberation\r\nliberation_main \"%UserProfile%\\Saved Games\" \"{}\"".format(VERSION))
_zip_dir(archieve, "./dist/dcs_liberation") _zip_dir(archieve, "./dist/dcs_liberation")