clean exit

This commit is contained in:
Darren Ranalli 2003-11-22 05:35:59 +00:00
parent 23140d5e23
commit ae1f8814a7

View File

@ -188,8 +188,6 @@ class DistributedLevel(DistributedObject.DistributedObject,
self.initVisibility()
self.placeLocalToon()
self.acceptOnce('leavingFactory', self.announceLeaving)
def announceLeaving(self):
"""call this just before leaving the level; this may result in
the factory being destroyed on the AI"""
@ -315,6 +313,8 @@ class DistributedLevel(DistributedObject.DistributedObject,
toonbase.localToon.chatMgr.chatInputSpeedChat.removeFactoryMenu()
# remove special camera views
del self.factoryViews
# make sure the ouch task is stopped
self.stopOuch()
def getZoneNode(self, zoneNum):
return self.zoneNum2node[zoneNum]