mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
Use transportLimit for unknown numberOrTemplate
Instead of directly using the numberOfTroops it should first check for the actual transport limit (if defined) for the given helo type. Otherwise the unitLoadLimits would be ignored for all AI flights automatically loading troops in pickup zones.
This commit is contained in:
parent
f70c6a7131
commit
ae0d68f5ef
2
CTLD.lua
2
CTLD.lua
@ -2121,7 +2121,7 @@ function ctld.loadTroops(_heli, _troops, _numberOrTemplate)
|
||||
|
||||
--number doesnt apply to vehicles
|
||||
if _numberOrTemplate == nil or (type(_numberOrTemplate) ~= "table" and type(_numberOrTemplate) ~= "number") then
|
||||
_numberOrTemplate = ctld.numberOfTroops
|
||||
_numberOrTemplate = ctld.getTransportLimit(_heli:getTypeName())
|
||||
end
|
||||
|
||||
if _onboard == nil then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user