mirror of
https://github.com/APercy/automobiles_pck
synced 2025-10-17 06:33:03 +02:00
fix abs function
This commit is contained in:
parent
7914ee6a11
commit
60afdb8676
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user