]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
update client color values when new values are recieved from server
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Aug 2002 05:59:27 +0000 (05:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Aug 2002 05:59:27 +0000 (05:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2252 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 21baf08f055eafa5b2a7f89127a0eda9036d8e14..896ddf0e251fbf0d1d17d0131a222fae552f0b51 100644 (file)
@@ -1173,6 +1173,9 @@ void CL_ParseServerMessage (void)
                        if (i >= cl.maxclients)
                                Host_Error ("CL_ParseServerMessage: svc_updatecolors >= cl.maxclients");
                        cl.scores[i].colors = MSG_ReadByte ();
+                       // update our color cvar if our color changed
+                       if (i == cl.playerentity - 1)
+                               Cvar_SetValue ("_cl_color", cl.scores[i].colors);
                        break;
 
                case svc_particle: