From ccb897af24da17a4c0e4a66069e60e9dfffbb0cb Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Fri, 16 Aug 2024 19:37:05 -0700 Subject: [PATCH] fix calculation --- vacuum_gambit.p8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index 0d1c62c..f8f20d0 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -470,7 +470,7 @@ function ship_m:constrain(p, dp, pmin, pmax, want) end if (bp <= pmax) return want -- spread overshoot across frames - want -= (bp - pmax)/(bf+1) + want -= (bp - pmax)/max(bf,1) return max(want, -self.thrust) end