Compare commits
2 Commits
d2bacd30bb
...
68a3f4589b
| Author | SHA1 | Date | |
|---|---|---|---|
| 68a3f4589b | |||
| ed25934cb7 |
5
main.lua
5
main.lua
@@ -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
|
||||
@@ -817,8 +817,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
|
||||
elseif actualPower <= 15 then
|
||||
actualPower = actualPower - 1
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user