Browse Source

double dispatch for zone changing

Zachary Pavlov 16 years ago
parent
commit
b83412c44e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      direct/src/distributed/DistributedCartesianGrid.py

+ 4 - 2
direct/src/distributed/DistributedCartesianGrid.py

@@ -226,7 +226,8 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
                     assert self.notify.debug(
                     assert self.notify.debug(
                         "processVisibility: %s: changing location" %
                         "processVisibility: %s: changing location" %
                         (self.doId))
                         (self.doId))
-                    self.handleAvatarZoneChange(self.visAvatar, zoneId)
+                    messenger.send("avatarZoneChanged", [self.visAvatar, self.doId, zoneId])
+                    #self.handleAvatarZoneChange(self.visAvatar, zoneId)
             self.visDirty = False
             self.visDirty = False
             return Task.cont
             return Task.cont
 
 
@@ -239,7 +240,8 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
         # Figure out what zone in that island grid
         # Figure out what zone in that island grid
         zoneId = self.getZoneFromXYZ(pos)
         zoneId = self.getZoneFromXYZ(pos)
         # Do the wrtReparenting to the grid node
         # Do the wrtReparenting to the grid node
-        self.handleAvatarZoneChange(av, zoneId)
+        messenger.send("avatarZoneChanged", [av, self.doId, zoneId])
+        #self.handleAvatarZoneChange(av, zoneId)
 
 
     def removeObjectFromGrid(self, av):
     def removeObjectFromGrid(self, av):
         assert self.notify.debug("removeObjectFromGrid %s" % av)
         assert self.notify.debug("removeObjectFromGrid %s" % av)