fix abs function

This commit is contained in:
Alexsandro Percy 2022-01-19 15:18:26 -03:00
parent 7914ee6a11
commit 60afdb8676

View File

@ -72,7 +72,7 @@ function automobiles_lib.control(self, dtime, hull_direction, longit_speed, long
acc = longit_speed * -1
end
end
if abs(longit_speed) < 0.2 then
if math.abs(longit_speed) < 0.2 then
stop = true
end
end