From 1798d8cb430e8ca637dcacc331210fcee58c5ad5 Mon Sep 17 00:00:00 2001 From: Murphy Date: Thu, 12 Oct 2023 11:49:36 +0300 Subject: [PATCH] * maximum_range fix --- py_ballisticcalc/trajectory_calc.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py_ballisticcalc/trajectory_calc.pyx b/py_ballisticcalc/trajectory_calc.pyx index 4b5f2bf..a98663d 100644 --- a/py_ballisticcalc/trajectory_calc.pyx +++ b/py_ballisticcalc/trajectory_calc.pyx @@ -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)