]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Only use SetSpectatee when disconnecting if the client was a spectator (should fix...
authorMario <mario@smbclan.net>
Thu, 16 Feb 2017 05:39:56 +0000 (15:39 +1000)
committerMario <mario@smbclan.net>
Thu, 16 Feb 2017 05:39:56 +0000 (15:39 +1000)
qcsrc/server/client.qc

index 786104918cfcd34e81008050f888baf626d0f9bf..ffd380810fec393f7607ea8615ee83a3fd6e268e 100644 (file)
@@ -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);