]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Only detach playerstate if observer was a player (potential fix for player state...
authorMario <mario@smbclan.net>
Mon, 8 Aug 2016 03:40:24 +0000 (13:40 +1000)
committerMario <mario@smbclan.net>
Mon, 8 Aug 2016 03:40:24 +0000 (13:40 +1000)
qcsrc/server/cl_client.qc

index c212691db7598c912f8841085243c918d7e5db7d..a37227d03024614a464ff56e4b27167b832ae72b 100644 (file)
@@ -218,7 +218,8 @@ void FixPlayermodel(entity player);
 void PutObserverInServer(entity this)
 {
     bool mutator_returnvalue = MUTATOR_CALLHOOK(MakePlayerObserver, this);
-       PlayerState_detach(this);
+    if(IS_PLAYER(this)) // our own state
+               PlayerState_detach(this);
 
        if (IS_PLAYER(this) && this.health >= 1) {
         // despawn effect