Pārlūkot izejas kodu

fixed pets AI crashes

Darren Ranalli 21 gadi atpakaļ
vecāks
revīzija
b01c703cca
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      direct/src/distributed/DistributedObjectAI.py

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

@@ -149,7 +149,8 @@ class DistributedObjectAI(DirectObject.DirectObject):
 
     def handleLogicalZoneChange(self, newZoneId, oldZoneId):
         """this function gets called as if we never go through the
-        quiet zone"""
+        quiet zone. Note that it is called once you reach the newZone,
+        and not at the time that you leave the oldZone."""
         messenger.send(self.getLogicalZoneChangeEvent(),
                        [newZoneId, oldZoneId])