mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
districtId in not wantOtpServer
This commit is contained in:
parent
03408cd09d
commit
a0c343d591
@ -278,11 +278,18 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
||||
if not wantOtpServer:
|
||||
parentId = 0
|
||||
# Make the dclass do the hard work
|
||||
dg = self.dclass.aiFormatGenerate(
|
||||
self, self.doId, parentId, zoneId,
|
||||
repository.serverId,
|
||||
repository.ourChannel,
|
||||
optionalFields)
|
||||
if not wantOtpServer:
|
||||
dg = self.dclass.aiFormatGenerate(
|
||||
self, self.doId, 0, zoneId,
|
||||
repository.districtId,
|
||||
repository.ourChannel,
|
||||
optionalFields)
|
||||
else:
|
||||
dg = self.dclass.aiFormatGenerate(
|
||||
self, self.doId, parentId, zoneId,
|
||||
repository.serverId,
|
||||
repository.ourChannel,
|
||||
optionalFields)
|
||||
repository.send(dg)
|
||||
|
||||
def initFromServerResponse(self, valDict):
|
||||
|
Loading…
x
Reference in New Issue
Block a user