]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qc
Only detach playerstate if observer was a player (potential fix for player state...
[xonotic/xonotic-data.pk3dir.git] / 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);
 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
 
        if (IS_PLAYER(this) && this.health >= 1) {
         // despawn effect