player: Don't send teleport greeting if in ghost mode.

This commit is contained in:
Harvir 2014-07-09 14:32:43 +01:00
parent 3811586eca
commit 03bec28361

View file

@ -418,6 +418,11 @@ class DistributedPlayer(DistributedAvatar.DistributedAvatar, PlayerBase.PlayerBa
return
def b_teleportGreeting(self, avId):
if hasattr(self, 'ghostMode') and self.ghostMode:
# If we're in ghost mode, we don't want to greet the person we're
# teleporting to. On another note, why the hell is Toontown-specific
# stuff in here? :S ...
return
self.d_teleportGreeting(avId)
self.teleportGreeting(avId)