From b03771c59c402bd6d0b2e467ceae4fda8e80c270 Mon Sep 17 00:00:00 2001 From: Justin Butler Date: Tue, 5 Sep 2006 23:03:28 +0000 Subject: [PATCH] double generate for objects problem fix --- direct/src/distributed/AsyncRequest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/AsyncRequest.py b/direct/src/distributed/AsyncRequest.py index fb9b50f5f3..0d538b482d 100755 --- a/direct/src/distributed/AsyncRequest.py +++ b/direct/src/distributed/AsyncRequest.py @@ -261,7 +261,11 @@ class AsyncRequest(DirectObject): assert not self.__deleted isInDoId2do = doId in self.air.doId2do distObj = self.air.generateGlobalObject(doId, className, values) - if not isInDoId2do: + if not isInDoId2do and game.name == 'uberDog': + # only remove doId if this is the uberdog?, in pirates this was + # causing traded inventory objects to be generated twice, once + # here and again later when it was noticed the doId was not in + # the doId2do list yet. self.air.doId2do.pop(doId, None) self._checkCompletion(name, None, distObj)