From e0d5348b483841d9086f6b4ae95ee4dcd512653c Mon Sep 17 00:00:00 2001 From: Nyo Date: Wed, 8 Jun 2016 20:27:59 +0200 Subject: [PATCH] .BANCHO. .FIX. Remove extra fellow spectators packets --- events/startSpectatingEvent.py | 2 +- events/stopSpectatingEvent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/events/startSpectatingEvent.py b/events/startSpectatingEvent.py index c9b998d..f0947ae 100644 --- a/events/startSpectatingEvent.py +++ b/events/startSpectatingEvent.py @@ -44,7 +44,7 @@ def handle(userToken, packetData): # send fellowSpectatorJoined to all spectators for c in targetToken.spectators: if c is not userID: - targetToken.enqueue(serverPackets.fellowSpectatorJoined(c)) + #targetToken.enqueue(serverPackets.fellowSpectatorJoined(c)) specToken = glob.tokens.getTokenFromUserID(c) specToken.enqueue(serverPackets.fellowSpectatorJoined(userID)) diff --git a/events/stopSpectatingEvent.py b/events/stopSpectatingEvent.py index d333e84..9161714 100644 --- a/events/stopSpectatingEvent.py +++ b/events/stopSpectatingEvent.py @@ -22,7 +22,7 @@ def handle(userToken, _): spec = glob.tokens.getTokenFromUserID(c) spec.enqueue(serverPackets.fellowSpectatorLeft(userID)) - targetToken.enqueue(serverPackets.fellowSpectatorLeft(userID)) + #targetToken.enqueue(serverPackets.fellowSpectatorLeft(userID)) # Console output # TODO: Move messages in stop spectating