]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 b2127febe8b74ba5d705e6bc73b4976e30995205..abbc8f2dcf1f16db3c6cf3e30739abc00d6cdf39 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();