mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
distributed: Fix the import test (and syntax on Python 3)
This commit is contained in:
parent
dfed8d2100
commit
df0c889092
@ -340,10 +340,10 @@ class DistributedObjectAI(DistributedObjectBase):
|
|||||||
self.air.sendUpdate(self, fieldName, args)
|
self.air.sendUpdate(self, fieldName, args)
|
||||||
|
|
||||||
def GetPuppetConnectionChannel(self, doId):
|
def GetPuppetConnectionChannel(self, doId):
|
||||||
return doId + (1001L << 32)
|
return doId + (1001 << 32)
|
||||||
|
|
||||||
def GetAccountConnectionChannel(self, doId):
|
def GetAccountConnectionChannel(self, doId):
|
||||||
return doId + (1003L << 32)
|
return doId + (1003 << 32)
|
||||||
|
|
||||||
def GetAccountIDFromChannelCode(self, channel):
|
def GetAccountIDFromChannelCode(self, channel):
|
||||||
return channel >> 32
|
return channel >> 32
|
||||||
|
@ -270,10 +270,10 @@ class DistributedObjectUD(DistributedObjectBase):
|
|||||||
self.air.sendUpdate(self, fieldName, args)
|
self.air.sendUpdate(self, fieldName, args)
|
||||||
|
|
||||||
def GetPuppetConnectionChannel(self, doId):
|
def GetPuppetConnectionChannel(self, doId):
|
||||||
return doId + (1001L << 32)
|
return doId + (1001 << 32)
|
||||||
|
|
||||||
def GetAccountConnectionChannel(self, doId):
|
def GetAccountConnectionChannel(self, doId):
|
||||||
return doId + (1003L << 32)
|
return doId + (1003 << 32)
|
||||||
|
|
||||||
def GetAccountIDFromChannelCode(self, channel):
|
def GetAccountIDFromChannelCode(self, channel):
|
||||||
return channel >> 32
|
return channel >> 32
|
||||||
|
@ -98,7 +98,6 @@ import direct.distributed.InterestWatcher
|
|||||||
import direct.distributed.MsgTypes
|
import direct.distributed.MsgTypes
|
||||||
import direct.distributed.MsgTypesCMU
|
import direct.distributed.MsgTypesCMU
|
||||||
import direct.distributed.NetMessenger
|
import direct.distributed.NetMessenger
|
||||||
import direct.distributed.OldClientRepository
|
|
||||||
import direct.distributed.ParentMgr
|
import direct.distributed.ParentMgr
|
||||||
import direct.distributed.PyDatagram
|
import direct.distributed.PyDatagram
|
||||||
import direct.distributed.PyDatagramIterator
|
import direct.distributed.PyDatagramIterator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user