more fixed from abs

This commit is contained in:
Alexsandro Percy 2023-07-08 17:08:15 -03:00
parent 3496cc07d7
commit 22fe149890
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ function airutils.control(self, dtime, hull_direction, longit_speed, longit_drag
engineacc = longit_speed * -1
end
end
if abs(longit_speed) < 0.2 then
if math.abs(longit_speed) < 0.2 then
stop = true
end
end