From: Mario Date: Thu, 16 Feb 2017 05:39:56 +0000 (+1000) Subject: Only use SetSpectatee when disconnecting if the client was a spectator (should fix... X-Git-Tag: xonotic-v0.8.2~205 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a700737d6416263b0151813f8b52e935243a8a45;p=xonotic%2Fxonotic-data.pk3dir.git Only use SetSpectatee when disconnecting if the client was a spectator (should fix some warnings when bots are removed) --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 786104918..ffd380810 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1256,7 +1256,8 @@ void ClientDisconnect(entity this) Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_QUIT_DISCONNECT, this.netname); - SetSpectatee(this, NULL); + if(IS_SPEC(this)) + SetSpectatee(this, NULL); MUTATOR_CALLHOOK(ClientDisconnect, this);