mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
(cherry picked from commit 9bd6f9ef47475e936d2abe052bb56fd30d0d2fbb)
This commit is contained in:
parent
9a2041b9d2
commit
fb85fca565
@ -12,6 +12,8 @@ Saves from 4.0.0 are compatible with 4.0.1.
|
||||
## Fixes
|
||||
* **[UI]** Statistics window tick marks are now always integers.
|
||||
|
||||
* **[Flight Planning]** Fixed potential issue with angles > 360° or < 0° being generated when summing two angles.
|
||||
|
||||
# 4.0.0
|
||||
|
||||
Saves from 3.x are not compatible with 4.0.
|
||||
|
||||
@ -18,12 +18,7 @@ KPH_TO_MS = 1 / MS_TO_KPH
|
||||
|
||||
def heading_sum(h, a) -> int:
|
||||
h += a
|
||||
if h > 360:
|
||||
return h - 360
|
||||
elif h < 0:
|
||||
return 360 + h
|
||||
else:
|
||||
return h
|
||||
return h % 360
|
||||
|
||||
|
||||
def opposite_heading(h):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user