Update DynamicCargo.lua

#DYNAMICCARGO small fixes
This commit is contained in:
Thomas 2025-03-31 12:31:23 +02:00 committed by GitHub
parent dc83af4d02
commit b66e91b11f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,7 +124,7 @@ DYNAMICCARGO.AircraftDimensions = {
--- DYNAMICCARGO class version. --- DYNAMICCARGO class version.
-- @field #string version -- @field #string version
DYNAMICCARGO.version="0.0.5" DYNAMICCARGO.version="0.0.6"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- TODO list -- TODO list
@ -227,7 +227,7 @@ end
-- @param #DYNAMICCARGO self -- @param #DYNAMICCARGO self
-- @return #boolean Outcome -- @return #boolean Outcome
function DYNAMICCARGO:IsUnloaded() function DYNAMICCARGO:IsUnloaded()
if self.CargoState and self.CargoState == DYNAMICCARGO.State.REMOVED then if self.CargoState and self.CargoState == DYNAMICCARGO.State.UNLOADED then
return true return true
else else
return false return false
@ -238,7 +238,7 @@ end
-- @param #DYNAMICCARGO self -- @param #DYNAMICCARGO self
-- @return #boolean Outcome -- @return #boolean Outcome
function DYNAMICCARGO:IsRemoved() function DYNAMICCARGO:IsRemoved()
if self.CargoState and self.CargoState == DYNAMICCARGO.State.UNLOADED then if self.CargoState and self.CargoState == DYNAMICCARGO.State.REMOVED then
return true return true
else else
return false return false