mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 00:37:54 +00: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
|
||||
|
||||
def identifyAvatar(self, doId):
|
||||
info = self.doId2do.get(doId)
|
||||
if info:
|
||||
return info
|
||||
if self.doId2do.has_key(doId):
|
||||
return self.doId2do[doId]
|
||||
else:
|
||||
info = self.identifyFriend(doId)
|
||||
return info
|
||||
return self.identifyFriend(doId)
|
||||
|
||||
def sendDisconnect(self):
|
||||
if self.isConnected():
|
||||
|
|
|
@ -251,7 +251,7 @@ class PlayerFriendsManager(DistributedObjectGlobal):
|
|||
return returnList
|
||||
|
||||
def identifyAvatar(self, doId):
|
||||
if doId in base.cr.doId2do:
|
||||
if base.cr.doId2do.has_key(doId)
|
||||
return base.cr.doId2do[doId]
|
||||
else:
|
||||
return self.identifyFriend(doId)
|
||||
|
|
|
@ -679,11 +679,11 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
|||
self.friendsMap[avatar.doId] = avatar
|
||||
|
||||
def identifyFriend(self, doId, source = None):
|
||||
if doId in self.friendsMap:
|
||||
if self.friendsMap.has_key(doId):
|
||||
teleportNotify.debug('friend %s in friendsMap' % doId)
|
||||
return self.friendsMap[doId]
|
||||
avatar = None
|
||||
if doId in self.doId2do:
|
||||
if self.doId2do.has_key(doId):
|
||||
teleportNotify.debug('found friend %s in doId2do' % doId)
|
||||
avatar = self.doId2do[doId]
|
||||
elif self.cache.contains(doId):
|
||||
|
@ -716,7 +716,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
|||
return base.cr.playerFriendsManager.getFriendInfo(pId)
|
||||
|
||||
def identifyAvatar(self, doId):
|
||||
if doId in self.doId2do:
|
||||
if self.doId2do.has_key(doId):
|
||||
return self.doId2do[doId]
|
||||
else:
|
||||
return self.identifyFriend(doId)
|
||||
|
|
Loading…
Reference in a new issue