Compare commits

...

2 Commits

View File

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