fix calculation
This commit is contained in:
parent
c130f4cf52
commit
ccb897af24
@ -470,7 +470,7 @@ function ship_m:constrain(p, dp, pmin, pmax, want)
|
|||||||
end
|
end
|
||||||
if (bp <= pmax) return want
|
if (bp <= pmax) return want
|
||||||
-- spread overshoot across frames
|
-- spread overshoot across frames
|
||||||
want -= (bp - pmax)/(bf+1)
|
want -= (bp - pmax)/max(bf,1)
|
||||||
return max(want, -self.thrust)
|
return max(want, -self.thrust)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user