storing object location even if parant or zone is not changing

This commit is contained in:
Dave Schuyler 2005-06-09 03:59:41 +00:00
parent 8a16f49391
commit 383cfb4704

View File

@ -167,8 +167,8 @@ class DistributedObjectAI(DirectObject.DirectObject):
lastLogicalZone = self.lastNonQuietZone lastLogicalZone = self.lastNonQuietZone
self.handleLogicalZoneChange(zoneId, lastLogicalZone) self.handleLogicalZoneChange(zoneId, lastLogicalZone)
self.lastNonQuietZone = zoneId self.lastNonQuietZone = zoneId
self.air.storeObjectLocation(self.doId, parentId, zoneId) self.air.storeObjectLocation(self.doId, parentId, zoneId)
self.__location = (parentId, zoneId) self.__location = (parentId, zoneId)
# Set the initial values of parentId,zoneId # Set the initial values of parentId,zoneId
def setInitLocation(self, parentId, zoneId): def setInitLocation(self, parentId, zoneId):