Pārlūkot izejas kodu

*** empty log message ***

Roger Hughston 21 gadi atpakaļ
vecāks
revīzija
84b97e97bc
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      direct/src/distributed/DistributedObjectAI.py

+ 5 - 0
direct/src/distributed/DistributedObjectAI.py

@@ -139,6 +139,11 @@ class DistributedObjectAI(DirectObject.DirectObject):
         def addInterest(self, zoneId, note="", event=None):
             self.air.addInterest(self.getDoId(), zoneId, note, event)
 
+        def setLocation(self, parentId, zoneId):
+           # The store must run first so we know the old location
+            self.air.setLocation(self.doId, parentId, zoneId)
+
+
         if 0: # this is untested:
             def setLocation(self, parentId, zoneId):
                 # The store must run first so we know the old location