fixed unknown variable

This commit is contained in:
Alexsandro Percy 2023-12-27 16:14:59 -03:00
parent 05b3460651
commit c8be6bebf2

View File

@ -2,7 +2,7 @@ function delorean.gravity_auto_correction(self, dtime)
local factor = 1
--minetest.chat_send_player(self.driver_name, "antes: " .. self._car_gravity)
if self._car_gravity > 0 then factor = -1 end
local time_correction = (dtime/delorean.ideal_step)
local time_correction = (dtime/automobiles_lib.ideal_step)
local intensity = 1
local correction = (intensity*factor) * time_correction
--minetest.chat_send_player(self.driver_name, correction)