Skip to content

Commit

Permalink
v1.1.2-until_distance-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
o-murphy committed Dec 22, 2023
1 parent da7fc0e commit 3215174
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py_ballisticcalc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__copyright__ = ("",)

__credits__ = ["o-murphy"]
__version__ = "1.1.1"
__version__ = "1.1.2"


from .backend import *
Expand Down
2 changes: 1 addition & 1 deletion py_ballisticcalc/trajectory_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _trajectory(self, ammo: Ammo, weapon: Weapon, atmo: Atmo,
if current_wind == len_winds - 1:
next_wind_range = 1e7
else:
next_wind_range = winds[current_wind].until_distance() >> Distance.Foot
next_wind_range = winds[current_wind].until_distance >> Distance.Foot

# Zero-crossing checks
if range_vector.x > 0:
Expand Down
2 changes: 1 addition & 1 deletion py_ballisticcalc_exts/py_ballisticcalc_exts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__copyright__ = ("",)

__credits__ = ["o-murphy"]
__version__ = "1.1.1"
__version__ = "1.1.2"

from .drag_model import *
from .trajectory_calc import *
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ cdef class TrajectoryCalc:
wind_vector = Vector(.0, .0, .0)
else:
if len_winds > 1:
next_wind_range = winds[0].until_distance() >> Distance.Foot
next_wind_range = winds[0].until_distance >> Distance.Foot
wind_vector = wind_to_vector(shot_info, winds[0])

if Settings.USE_POWDER_SENSITIVITY:
Expand Down

0 comments on commit 3215174

Please sign in to comment.