mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Removed flushes
This commit is contained in:
@@ -770,7 +770,6 @@ function DETECTION_AREAS:CreateDetectionSets()
|
||||
if DetectedArea then
|
||||
|
||||
local DetectedSet = DetectedArea.Set
|
||||
DetectedSet:Flush()
|
||||
|
||||
local AreaExists = false -- This flag will determine of the detected area is still existing.
|
||||
|
||||
|
||||
@@ -339,8 +339,6 @@ function SET_BASE:Remove( ObjectName )
|
||||
self.Set[ObjectName] = nil
|
||||
end
|
||||
|
||||
self:Flush()
|
||||
|
||||
end
|
||||
|
||||
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
|
||||
@@ -499,7 +497,6 @@ function SET_BASE:_EventOnBirth( Event )
|
||||
self:T3( ObjectName, Object )
|
||||
if self:IsIncludeObject( Object ) then
|
||||
self:Add( ObjectName, Object )
|
||||
self:Flush()
|
||||
--self:_EventOnPlayerEnterUnit( Event )
|
||||
end
|
||||
end
|
||||
@@ -510,7 +507,6 @@ end
|
||||
-- @param Event#EVENTDATA Event
|
||||
function SET_BASE:_EventOnDeadOrCrash( Event )
|
||||
self:E( { Event } )
|
||||
self:Flush()
|
||||
|
||||
if Event.IniDCSUnit then
|
||||
local ObjectName, Object = self:FindInDatabase( Event )
|
||||
@@ -1378,8 +1374,6 @@ function SET_UNIT:GetUnitTypesText()
|
||||
local MT = {} -- Message Text
|
||||
local UnitTypes = {}
|
||||
|
||||
self:Flush()
|
||||
|
||||
for UnitID, UnitData in pairs( self:GetSet() ) do
|
||||
local TextUnit = UnitData -- Unit#UNIT
|
||||
if TextUnit:IsAlive() then
|
||||
|
||||
Reference in New Issue
Block a user