Skip to content

Commit

Permalink
* maximum_range fix
Browse files Browse the repository at this point in the history
  • Loading branch information
o-murphy committed Oct 12, 2023
1 parent c37976f commit 1798d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_ballisticcalc/trajectory_calc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ cdef class TrajectoryCalc:
double step = shot_info.step >> Distance.Foot
double calc_step = self.get_calc_step(step)

double maximum_range = (shot_info.max_range >> Distance.Foot) + step
double maximum_range = (shot_info.max_range >> Distance.Foot) + 1

int ranges_length = int(maximum_range / step) + 1
int len_winds = len(winds)
Expand Down

0 comments on commit 1798d8c

Please sign in to comment.