From 1c4ed7e76129728bc44daa123a93a90e8da4a928 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Thu, 14 Sep 2023 19:08:51 -0300 Subject: [PATCH] fix old planes --- lib_planes/entities.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 8ea5667..ed001f2 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -262,6 +262,11 @@ function airutils.logic(self) self._custom_step_additional_function(self) end + --fix old planes + if not self._flap then self._flap = false end + if not self._wing_configuration then self._wing_configuration = self._wing_angle_of_attack end + + if self._wing_configuration == self._wing_angle_of_attack and self._flap then airutils.flap_on(self) end