immobilize the avatar

This commit is contained in:
Asad M. Zaman 2006-12-06 21:22:17 +00:00
parent 7c37ba0572
commit cf7a21d264

View File

@ -118,6 +118,9 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
self.cr.doId2do[self.parentId].worldGrid.stopProcessVisibility(event=parentEvent) self.cr.doId2do[self.parentId].worldGrid.stopProcessVisibility(event=parentEvent)
def processVisibility(self, task): def processVisibility(self, task):
if self.visAvatar.immobilized:
return Task.cont
pos = self.visAvatar.getPos(self) pos = self.visAvatar.getPos(self)
# Check to make sure our x and y are positive # Check to make sure our x and y are positive
dx = self.cellWidth * self.gridSize * .5 dx = self.cellWidth * self.gridSize * .5