mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fix old planes
This commit is contained in:
parent
bd85ee4c67
commit
1c4ed7e761
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue