mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Potential street teleport fix
This commit is contained in:
parent
4881a40bc0
commit
e0ea00b3bd
3 changed files with 7 additions and 9 deletions
|
@ -1899,12 +1899,10 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def identifyAvatar(self, doId):
|
def identifyAvatar(self, doId):
|
||||||
info = self.doId2do.get(doId)
|
if self.doId2do.has_key(doId):
|
||||||
if info:
|
return self.doId2do[doId]
|
||||||
return info
|
|
||||||
else:
|
else:
|
||||||
info = self.identifyFriend(doId)
|
return self.identifyFriend(doId)
|
||||||
return info
|
|
||||||
|
|
||||||
def sendDisconnect(self):
|
def sendDisconnect(self):
|
||||||
if self.isConnected():
|
if self.isConnected():
|
||||||
|
|
|
@ -251,7 +251,7 @@ class PlayerFriendsManager(DistributedObjectGlobal):
|
||||||
return returnList
|
return returnList
|
||||||
|
|
||||||
def identifyAvatar(self, doId):
|
def identifyAvatar(self, doId):
|
||||||
if doId in base.cr.doId2do:
|
if base.cr.doId2do.has_key(doId)
|
||||||
return base.cr.doId2do[doId]
|
return base.cr.doId2do[doId]
|
||||||
else:
|
else:
|
||||||
return self.identifyFriend(doId)
|
return self.identifyFriend(doId)
|
||||||
|
|
|
@ -679,11 +679,11 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
self.friendsMap[avatar.doId] = avatar
|
self.friendsMap[avatar.doId] = avatar
|
||||||
|
|
||||||
def identifyFriend(self, doId, source = None):
|
def identifyFriend(self, doId, source = None):
|
||||||
if doId in self.friendsMap:
|
if self.friendsMap.has_key(doId):
|
||||||
teleportNotify.debug('friend %s in friendsMap' % doId)
|
teleportNotify.debug('friend %s in friendsMap' % doId)
|
||||||
return self.friendsMap[doId]
|
return self.friendsMap[doId]
|
||||||
avatar = None
|
avatar = None
|
||||||
if doId in self.doId2do:
|
if self.doId2do.has_key(doId):
|
||||||
teleportNotify.debug('found friend %s in doId2do' % doId)
|
teleportNotify.debug('found friend %s in doId2do' % doId)
|
||||||
avatar = self.doId2do[doId]
|
avatar = self.doId2do[doId]
|
||||||
elif self.cache.contains(doId):
|
elif self.cache.contains(doId):
|
||||||
|
@ -716,7 +716,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
return base.cr.playerFriendsManager.getFriendInfo(pId)
|
return base.cr.playerFriendsManager.getFriendInfo(pId)
|
||||||
|
|
||||||
def identifyAvatar(self, doId):
|
def identifyAvatar(self, doId):
|
||||||
if doId in self.doId2do:
|
if self.doId2do.has_key(doId):
|
||||||
return self.doId2do[doId]
|
return self.doId2do[doId]
|
||||||
else:
|
else:
|
||||||
return self.identifyFriend(doId)
|
return self.identifyFriend(doId)
|
||||||
|
|
Loading…
Reference in a new issue