fix calculation

This commit is contained in:
Kistaro Windrider 2024-08-16 19:37:05 -07:00
parent c130f4cf52
commit ccb897af24
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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