resend accuracy when spectating
authorRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Nov 2010 13:28:59 +0000 (14:28 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 22 Nov 2010 13:28:59 +0000 (14:28 +0100)
qcsrc/server/cl_client.qc

index b2127fe..abbc8f2 100644 (file)
@@ -631,6 +631,8 @@ void PutObserverInServer (void)
 
        PlayerScore_Clear(self); // clear scores when needed
 
+       accuracy_resend(self);
+
        self.spectatortime = time;
 
        self.classname = "observer";
@@ -853,6 +855,8 @@ void PutClientInServer (void)
                entity spot, oldself;
                float j;
 
+               accuracy_resend(self);
+
                if(self.team < 0)
                        JoinBestTeam(self, FALSE, TRUE);
 
@@ -2345,6 +2349,7 @@ float SpectateNext() {
                WriteEntity(MSG_ONE, self.enemy);
                //stuffcmd(self, "set viewsize $tmpviewsize \n");
                self.movetype = MOVETYPE_NONE;
+               accuracy_resend(self);
 
                if(!SpectateUpdate())
                        PutObserverInServer();