mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-07-16 22:22:25 +00:00
Merge pull request #2458 from leka1986/patch-3
Convert cargo type to string for logging
This commit is contained in:
@@ -7297,10 +7297,10 @@ end
|
||||
local type = cargo.CargoType
|
||||
local gname = cargo.Name
|
||||
local gcargo = self:_FindCratesCargoObject(gname) or self:_FindTroopsCargoObject(gname)
|
||||
self:T("Looking at " .. gname .. " in the helo - type = " .. type)
|
||||
self:T("Looking at " .. gname .. " in the helo - type = "..tostring(type))
|
||||
if (type == CTLD_CARGO.Enum.TROOPS or type == CTLD_CARGO.Enum.ENGINEERS or type == CTLD_CARGO.Enum.VEHICLE or type == CTLD_CARGO.Enum.FOB) then
|
||||
if gcargo and gcargo:GetStock0() > 0 then
|
||||
self:T("Adding " .. gname .. " in the helo - type = " .. type)
|
||||
self:T("Adding " .. gname .. " in the helo - type = "..tostring(type))
|
||||
if (type == CTLD_CARGO.Enum.TROOPS or type == CTLD_CARGO.Enum.ENGINEERS) then
|
||||
Troopstable[gname].Inhelo = Troopstable[gname].Inhelo + 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user