mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
got factories and mints working again in Toontown
This commit is contained in:
parent
47c1d1e360
commit
0ff04705bf
@ -674,8 +674,8 @@ class ClientRepository(ConnectionRepository):
|
||||
return doDict
|
||||
|
||||
if wantOtpServer:
|
||||
def sendEmulateSetZone(self, zoneId, visibleZoneList=None,
|
||||
parentIdin=None, event=None):
|
||||
def sendEmulateSetZoneMsg(self, zoneId, visibleZoneList=None,
|
||||
parentIdin=None, event=None):
|
||||
"""
|
||||
This Will Move The avatar and set an interest to that location ..
|
||||
"""
|
||||
@ -683,11 +683,10 @@ class ClientRepository(ConnectionRepository):
|
||||
if parentId is None:
|
||||
parentId = base.localAvatar.defaultShard
|
||||
|
||||
MyAvID = base.localAvatar.doId
|
||||
# move thwe avatar..
|
||||
self.sendSetLocation(MyAvID,parentId,zoneId)
|
||||
# move the interest..
|
||||
# move the avatar
|
||||
self.sendSetLocation(base.localAvatar.doId,parentId,zoneId)
|
||||
|
||||
# move the interest
|
||||
InterestZones = zoneId
|
||||
if visibleZoneList is not None:
|
||||
InterestZones = visibleZoneList
|
||||
@ -734,6 +733,13 @@ class ClientRepository(ConnectionRepository):
|
||||
# send the message
|
||||
self.send(datagram)
|
||||
|
||||
assert self.setZonesRequested >= self.setZonesReceived
|
||||
self.setZonesRequested += 1
|
||||
|
||||
# override if desired
|
||||
def handleSetZoneDone(self):
|
||||
pass
|
||||
|
||||
def handleDatagram(self, di):
|
||||
if self.notify.getDebug():
|
||||
print "ClientRepository received datagram:"
|
||||
|
Loading…
x
Reference in New Issue
Block a user