call the MakePlayerObserver hook BEFORE a player becomes observer (so the old origin...
authorRudolf Polzer <divverent@alientrap.org>
Thu, 18 Nov 2010 05:25:33 +0000 (06:25 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 18 Nov 2010 05:25:33 +0000 (06:25 +0100)
qcsrc/server/cl_client.qc

index e3507d6..991017f 100644 (file)
@@ -599,6 +599,7 @@ void PutObserverInServer (void)
        }
 
        DropAllRunes(self);
+       MUTATOR_CALLHOOK(MakePlayerObserver);
 
        Portal_ClearAll(self);
 
@@ -713,8 +714,6 @@ void PutObserverInServer (void)
        }
        else
                self.frags = FRAGS_SPECTATOR;
-
-       MUTATOR_CALLHOOK(MakePlayerObserver);
 }
 
 float RestrictSkin(float s)