bossBattle

This commit is contained in:
David Rose 2003-11-06 18:20:44 +00:00
parent ac53a4e660
commit e10b203bf2

View File

@ -116,9 +116,11 @@ class RelatedObjectMgr(DirectObject.DirectObject):
from a previous call to requestObjects(). The pending request from a previous call to requestObjects(). The pending request
is removed from the queue and no further callbacks will be called. is removed from the queue and no further callbacks will be called.
""" """
if tuple:
callback, timeoutCallback, doIdsPending, doIdList, doLaterName = tuple callback, timeoutCallback, doIdsPending, doIdList, doLaterName = tuple
assert(self.notify.debug("aborting request for %s (remaining: %s)" % (doIdList, doIdsPending))) assert(self.notify.debug("aborting request for %s (remaining: %s)" % (doIdList, doIdsPending)))
if doLaterName:
taskMgr.remove(doLaterName) taskMgr.remove(doLaterName)
self.__removePending(tuple, doIdsPending) self.__removePending(tuple, doIdsPending)
@ -180,6 +182,7 @@ class RelatedObjectMgr(DirectObject.DirectObject):
# That was the last doId on the list. Call the # That was the last doId on the list. Call the
# callback! # callback!
assert(self.notify.debug("All objects generated on list: %s" % (doIdList))) assert(self.notify.debug("All objects generated on list: %s" % (doIdList)))
if doLaterName:
taskMgr.remove(doLaterName) taskMgr.remove(doLaterName)
objects, doIdsPending = self.__generateObjectList(doIdList) objects, doIdsPending = self.__generateObjectList(doIdList)