checked in TODO comment about creating objects that have no location

This commit is contained in:
Darren Ranalli 2007-03-05 23:24:01 +00:00
parent dced7485a0
commit 91f6de31d2

View File

@ -294,11 +294,12 @@ class AsyncRequest(DirectObject):
self._checkCompletion, [name, None])
self.air.requestDatabaseGenerate(className, context, values=values)
self.startTimeOut()
def _doCreateObject(self, name, className, values, doId):
assert self.notify.debugCall()
assert not self.__deleted
isInDoId2do = doId in self.air.doId2do
# TODO: this creates an object with no location
distObj = self.air.generateGlobalObject(doId, className, values)
if not isInDoId2do and game.name == 'uberDog':
# only remove doId if this is the uberdog?, in pirates this was