From c088cb7cf4f13e4de785aabeabb5c4bf41ead422 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Sat, 6 Aug 2005 05:55:19 +0000 Subject: [PATCH] testing without adding globals to doId2do --- .../distributed/DistributedObjectGlobalAI.py | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/direct/src/distributed/DistributedObjectGlobalAI.py b/direct/src/distributed/DistributedObjectGlobalAI.py index 34778fa42f..aab5f1f21e 100755 --- a/direct/src/distributed/DistributedObjectGlobalAI.py +++ b/direct/src/distributed/DistributedObjectGlobalAI.py @@ -1,27 +1,27 @@ - - -from DistributedObjectAI import DistributedObjectAI -from direct.directnotify.DirectNotifyGlobal import directNotify - -if __debug__: - notify = directNotify.newCategory('DistributedObjectGlobalAI') - - -class DistributedObjectGlobalAI(DistributedObjectAI): - if __debug__: - notify = notify - - doNotDeallocateChannel = 1 - isGlobalDistObj = 1 - - def __init__(self, air): - DistributedObjectAI.__init__(self, air) - - def announceGenerate(self): - self.air.registerForChannel(self.doId) - DistributedObjectAI.announceGenerate(self) - - def delete(self): - self.air.unregisterForChannel(self.doId) - self.air.removeDOFromTables(self) - DistributedObjectAI.delete(self) + + +from DistributedObjectAI import DistributedObjectAI +from direct.directnotify.DirectNotifyGlobal import directNotify + +if __debug__: + notify = directNotify.newCategory('DistributedObjectGlobalAI') + + +class DistributedObjectGlobalAI(DistributedObjectAI): + if __debug__: + notify = notify + + doNotDeallocateChannel = 1 + isGlobalDistObj = 1 + + def __init__(self, air): + DistributedObjectAI.__init__(self, air) + + def announceGenerate(self): + self.air.registerForChannel(self.doId) + DistributedObjectAI.announceGenerate(self) + + def delete(self): + self.air.unregisterForChannel(self.doId) + ## self.air.removeDOFromTables(self) + DistributedObjectAI.delete(self)