Minor fixes

This commit is contained in:
Applevangelist 2024-01-19 19:09:08 +01:00
parent 0ce3a189c3
commit 11f0b2899d
3 changed files with 5 additions and 2 deletions

View File

@ -435,7 +435,8 @@ function STRATEGO:AnalyseBases()
if not abzone then
abzone = ZONE_RADIUS:New(abname,ab:GetVec2(),500)
end
local coa = ab:GetCoalition() + 1
local coa = ab:GetCoalition() or 0
coa = coa+1
local abtype = "AIRBASE"
if ab:IsShip() then
numrwys = 1

View File

@ -121,6 +121,7 @@ do
-- @field #number TacticalIncrFreq
-- @field #number TacticalModulation
-- @field #number TacticalInterval
-- @field Core.Set#SET_GROUP DetectionSet
-- @extends Core.Fsm#FSM
@ -603,6 +604,7 @@ AWACS = {
TacticalIncrFreq = 0.5,
TacticalModulation = radio.modulation.AM,
TacticalInterval = 120,
DetectionSet = nil,
}
---

View File

@ -578,7 +578,7 @@ function INTEL:AddAgent(AgentGroup)
end
-- Add to detection set.
self.detectionset:AddGroup(AgentGroup)
self.detectionset:AddGroup(AgentGroup,true)
return self
end