mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Optimized transmission of data of dead units
Dead units only transmit basedata. Empty fields and empty units are removed from update packages.
This commit is contained in:
@@ -48,9 +48,11 @@ end
|
||||
function Olympus.getCountryIDByCoalition(coalition)
|
||||
local countryID = 0
|
||||
if coalition == 'red' then
|
||||
countryID = country.id.RUSSIA
|
||||
countryID = country.id.CJTF_RED
|
||||
elseif coalition == 'blue' then
|
||||
countryID = country.id.CJTF_BLUE
|
||||
else
|
||||
countryID = country.id.USA
|
||||
countryID = country.id.UN_PEACEKEEPERS
|
||||
end
|
||||
return countryID
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user