Cargo Dispatcher APC - Multiple Cargo Groups and Weight in APC

This commit is contained in:
FlightControl
2018-08-17 07:59:53 +02:00
parent 9650129769
commit a02d3c1950
7 changed files with 97 additions and 31 deletions

View File

@@ -879,7 +879,6 @@ do -- Cargo
function POSITIONABLE:GetCargoBayFreeWeight()
local CargoWeight = 0
for CargoName, Cargo in pairs( self.__.Cargo ) do
self:F( { Cargo = Cargo } )
CargoWeight = CargoWeight + Cargo:GetWeight()
end
return self.__.CargoBayWeightLimit - CargoWeight