Browse Source

sendSetLOcation from setLocation

Samir Naik 21 years ago
parent
commit
2e5a15c145
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/distributed/DistributedObjectAI.py

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

@@ -140,8 +140,8 @@ class DistributedObjectAI(DirectObject.DirectObject):
             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)
+            # The store must run first so we know the old location
+            self.air.sendSetLocation(self, parentId, zoneId)
 
 
         if 0: # this is untested: