hopefully fix SetThrusterPower for rotators with analog transmissions

This commit is contained in:
2026-06-29 21:56:04 -05:00
parent d2bacd30bb
commit ed25934cb7

View File

@@ -788,7 +788,7 @@ function SetThrusterPower(thruster, power)
end
if Config.Debug then print("DEBUG: thruster "..thruster.name..": power "..power) end
if thruster.type == "rotator" then
thruster.power = power
local actualPower = 0
@@ -818,7 +818,7 @@ function SetThrusterPower(thruster, power)
if actualPower < 1 then
actualPower = 15 -- signal 15 will decouple the speed and stop the motion
end
if actualPower <= 15 then
if actualPower <= 15 and actualPower > 1 then
actualPower = actualPower - 1
end