mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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
|
return doDict
|
||||||
|
|
||||||
if wantOtpServer:
|
if wantOtpServer:
|
||||||
def sendEmulateSetZone(self, zoneId, visibleZoneList=None,
|
def sendEmulateSetZoneMsg(self, zoneId, visibleZoneList=None,
|
||||||
parentIdin=None, event=None):
|
parentIdin=None, event=None):
|
||||||
"""
|
"""
|
||||||
This Will Move The avatar and set an interest to that location ..
|
This Will Move The avatar and set an interest to that location ..
|
||||||
"""
|
"""
|
||||||
@ -683,11 +683,10 @@ class ClientRepository(ConnectionRepository):
|
|||||||
if parentId is None:
|
if parentId is None:
|
||||||
parentId = base.localAvatar.defaultShard
|
parentId = base.localAvatar.defaultShard
|
||||||
|
|
||||||
MyAvID = base.localAvatar.doId
|
# move the avatar
|
||||||
# move thwe avatar..
|
self.sendSetLocation(base.localAvatar.doId,parentId,zoneId)
|
||||||
self.sendSetLocation(MyAvID,parentId,zoneId)
|
|
||||||
# move the interest..
|
|
||||||
|
|
||||||
|
# move the interest
|
||||||
InterestZones = zoneId
|
InterestZones = zoneId
|
||||||
if visibleZoneList is not None:
|
if visibleZoneList is not None:
|
||||||
InterestZones = visibleZoneList
|
InterestZones = visibleZoneList
|
||||||
@ -734,6 +733,13 @@ class ClientRepository(ConnectionRepository):
|
|||||||
# send the message
|
# send the message
|
||||||
self.send(datagram)
|
self.send(datagram)
|
||||||
|
|
||||||
|
assert self.setZonesRequested >= self.setZonesReceived
|
||||||
|
self.setZonesRequested += 1
|
||||||
|
|
||||||
|
# override if desired
|
||||||
|
def handleSetZoneDone(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def handleDatagram(self, di):
|
def handleDatagram(self, di):
|
||||||
if self.notify.getDebug():
|
if self.notify.getDebug():
|
||||||
print "ClientRepository received datagram:"
|
print "ClientRepository received datagram:"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user