Browse Source

setting parentId

Dave Schuyler 20 years ago
parent
commit
94f2808cb9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/distributed/DistributedObjectAI.py

+ 2 - 2
direct/src/distributed/DistributedObjectAI.py

@@ -154,6 +154,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
             oldZoneId = self.zoneId
             oldZoneId = self.zoneId
             if ((oldParentId != parentId) or
             if ((oldParentId != parentId) or
                 (oldZoneId != zoneId)):
                 (oldZoneId != zoneId)):
+                #print "%s location is now %s, %s (%s)"%(self.doId, parentId, zoneId, self)
                 self.zoneId = zoneId
                 self.zoneId = zoneId
                 self.parentId = parentId
                 self.parentId = parentId
                 self.air.changeDOZoneInTables(self, parentId, zoneId, oldParentId, oldZoneId)
                 self.air.changeDOZoneInTables(self, parentId, zoneId, oldParentId, oldZoneId)
@@ -355,8 +356,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
         other networked info in this function.
         other networked info in this function.
         """
         """
         assert self.notify.debugStateCall(self)
         assert self.notify.debugStateCall(self)
-        # we don't always have a parentId, e.g. DistributedAvatarManagerAI
-        #self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId)
+        self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId)
 
 
     if wantOtpServer:
     if wantOtpServer:
         def generateInit(self, repository=None):
         def generateInit(self, repository=None):