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 21baf08..896ddf0 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: