Browse Source

Fix for parlor game/tutorial teleporting.

Justin Butler 20 years ago
parent
commit
c568c06881
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/distributed/DistributedCartesianGrid.py

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

@@ -41,6 +41,8 @@ class DistributedCartesianGrid(DistributedNode.DistributedNode,
         
         
     def delete(self):
     def delete(self):
         DistributedNode.DistributedNode.delete(self)
         DistributedNode.DistributedNode.delete(self)
+        # TODO: when teleporting off an island...
+        taskMgr.remove(self.taskName("processVisibility"))
 
 
     def isGridParent(self):
     def isGridParent(self):
         # If this distributed object is a DistributedGrid return 1.  0 by default
         # If this distributed object is a DistributedGrid return 1.  0 by default