Merge pull request #1584 from FlightControl-Master/Applevangelist-patch-3-1

Update Utils.lua
This commit is contained in:
Applevangelist 2021-08-02 19:04:57 +02:00 committed by GitHub
commit b89749036d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1535,8 +1535,8 @@ function UTILS.IsLoadingDoorOpen( unit_name )
if unit ~= nil then
local type_name = unit:getTypeName()
if type_name == "Mi-8MT" and unit:getDrawArgumentValue(86) == 1 or unit:getDrawArgumentValue(250) == 1 then
BASE:T(unit_name .. " Cargo doors are open or cargo door not present")
if type_name == "Mi-8MT" and unit:getDrawArgumentValue(38) == 1 or unit:getDrawArgumentValue(86) == 1 or unit:getDrawArgumentValue(250) == 1 then
BASE:T(unit_name .. " Cargo doors are open or cargo door not present")
ret_val = true
end