|
@@ -228,6 +228,12 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
|
|
def GetPuppetConnectionChannel(self, doId):
|
|
def GetPuppetConnectionChannel(self, doId):
|
|
|
return doId + ( 1L << 32);
|
|
return doId + ( 1L << 32);
|
|
|
|
|
|
|
|
|
|
+ def GetAccountIDFromChannelCode(self, channel):
|
|
|
|
|
+ return (channel >> 32)
|
|
|
|
|
+
|
|
|
|
|
+ def GetAvatarIDFromChannelCode(self, channel):
|
|
|
|
|
+ return (channel & 0xffffffffL)
|
|
|
|
|
+
|
|
|
def sendUpdateToAvatarId(self, avId, fieldName, args):
|
|
def sendUpdateToAvatarId(self, avId, fieldName, args):
|
|
|
assert self.notify.debugStateCall(self)
|
|
assert self.notify.debugStateCall(self)
|
|
|
channelId = self.GetPuppetConnectionChannel(avId)
|
|
channelId = self.GetPuppetConnectionChannel(avId)
|
|
@@ -426,7 +432,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
|
|
def setBarrierReady(self, context):
|
|
def setBarrierReady(self, context):
|
|
|
# Generated by the clients to check in after a beginBarrier()
|
|
# Generated by the clients to check in after a beginBarrier()
|
|
|
# call.
|
|
# call.
|
|
|
- avId = self.air.msgSender
|
|
|
|
|
|
|
+ avId = self.air.GetAvatarIDFromSender()
|
|
|
assert(self.notify.debug('setBarrierReady(%s, %s)' % (context, avId)))
|
|
assert(self.notify.debug('setBarrierReady(%s, %s)' % (context, avId)))
|
|
|
barrier = self.__barriers.get(context)
|
|
barrier = self.__barriers.get(context)
|
|
|
if barrier == None:
|
|
if barrier == None:
|