Lots of bugs fixed

- MISSILETRAINER: is working now...
SET_CLIENT. Is working much better now. Had to rework DATABASE, SPAWN to
get this straight.
BASE: Fixed a bug that has been in de system for a very long time. the
parent should have never been deepcopied when inheriting from it.
- SCHEDULER: Fixed a nasty bug with the scheduler, when the
repeatparameters was nil, i was still repeating, very wrong. fixed now.
This commit is contained in:
FlightControl
2016-06-11 10:28:57 +02:00
parent bd81d16327
commit b335e99d5b
26 changed files with 215 additions and 40051 deletions

View File

@@ -133,6 +133,7 @@ function CLIENT:Register( ClientName )
--self.AliveCheckScheduler = routines.scheduleFunction( self._AliveCheckScheduler, { self }, timer.getTime() + 1, 5 )
self.AliveCheckScheduler = SCHEDULER:New( self, self._AliveCheckScheduler, {}, 1, 5 )
self:E( self )
return self
end
@@ -230,10 +231,10 @@ end
-- @param #CLIENT self
-- @param #function CallBack Function.
-- @return #CLIENT
function CLIENT:Alive( CallBack, ... )
function CLIENT:Alive( CallBackFunction, ... )
self:F()
self.ClientCallBack = CallBack
self.ClientCallBack = CallBackFunction
self.ClientParameters = arg
return self
@@ -241,7 +242,7 @@ end
--- @param #CLIENT self
function CLIENT:_AliveCheckScheduler()
self:F( { self.ClientName, self.ClientAlive2, self.ClientBriefingShown } )
self:F( { self.ClientName, self.ClientAlive2, self.ClientBriefingShown, self.ClientCallBack } )
if self:IsAlive() then -- Polymorphic call of UNIT
if self.ClientAlive2 == false then