fix percentage variable

master
Alexsandro Percy 2022-06-25 13:46:29 -03:00
parent 786abbe621
commit 97a50b51bd
1 changed files with 2 additions and 1 deletions

View File

@ -480,8 +480,9 @@ function hidroplane.flightstep(self)
end
--ajustar angulo de ataque
local percentage = 0
if longit_speed then
local percentage = math.abs(((longit_speed * 100)/(hidroplane.min_speed + 5))/100)
percentage = math.abs(((longit_speed * 100)/(hidroplane.min_speed + 5))/100)
if percentage > 1.5 then percentage = 1.5 end
self._angle_of_attack = self._angle_of_attack - ((self._elevator_angle / 20)*percentage)
if self._angle_of_attack < -0.5 then