Fixed bug in Scheduler (a real nasty one) and SET_UNIT

This commit is contained in:
FlightControl
2016-07-23 20:26:08 +02:00
parent 906045a027
commit c10e293ff7
49 changed files with 104 additions and 63 deletions

View File

@@ -739,7 +739,7 @@ function DETECTION_AREAS:GetChangeText( DetectedArea )
end
if ChangeCode == "RAU" then
MT[#MT+1] = "Changed area " .. ChangeData.AreaID .. ". Removed the center target " .. ChangeData.AreaUnitType "."
MT[#MT+1] = "Changed area " .. ChangeData.AreaID .. ". Removed the center target."
end
if ChangeCode == "AAU" then
@@ -824,7 +824,7 @@ function DETECTION_AREAS:CreateDetectionSets()
-- First remove the center unit from the set.
DetectedSet:RemoveUnitsByName( DetectedArea.Zone.ZoneUNIT.UnitName )
self:AddChangeArea( DetectedArea, 'RAU', DetectedArea.Zone.ZoneUNIT:GetTypeName() )
self:AddChangeArea( DetectedArea, 'RAU', "Dummy" )
-- Then search for a new center area unit within the set. Note that the new area unit candidate must be within the area range.
for DetectedUnitName, DetectedUnitData in pairs( DetectedSet:GetSet() ) do