updated location argument; updated ground units placement during attack operation

This commit is contained in:
Vasyl Horbachenko 2018-09-12 00:20:35 +03:00
parent 262347f8c8
commit 6fb342a42c
3 changed files with 5 additions and 5 deletions

View File

@ -215,10 +215,10 @@ class Conflict:
distance = GROUND_DISTANCE
attackers_location = position.point_from_heading(attack_heading, distance)
attackers_location = Conflict._find_ground_position(attackers_location, distance * 2, _heading_sum(attack_heading, 180), theater)
attackers_location = Conflict._find_ground_position(attackers_location, distance * 2, attack_heading, theater)
defenders_location = position.point_from_heading(defense_heading, 0)
defenders_location = Conflict._find_ground_position(defenders_location, distance * 2, _heading_sum(defense_heading, 180), theater)
defenders_location = Conflict._find_ground_position(defenders_location, distance * 2, defense_heading, theater)
return cls(
position=position,

View File

@ -43,7 +43,7 @@ def _mk_archieve():
return
archieve = ZipFile(path, "w")
archieve.writestr("start.bat", "py.exe __init__.py \"%UserProfile%\" \"{}\"".format(VERSION))
archieve.writestr("start.bat", "py.exe __init__.py \"%UserProfile%\\Saved Games\" \"{}\"".format(VERSION))
_zip_dir(archieve, ".")
os.chdir("submodules\\dcs")
_zip_dir(archieve, "dcs")

View File

@ -17,11 +17,11 @@ def base_path() -> str:
global _user_folder
assert _user_folder
openbeta_path = os.path.join(_user_folder, "Saved Games", "DCS.openbeta")
openbeta_path = os.path.join(_user_folder, "DCS.openbeta")
if "--force-stable-DCS" not in sys.argv and os.path.exists(openbeta_path):
return openbeta_path
else:
return os.path.join(_user_folder, "Saved Games", "DCS")
return os.path.join(_user_folder, "DCS")
def _save_file() -> str: