From: havoc Date: Fri, 16 Aug 2002 05:59:27 +0000 (+0000) Subject: update client color values when new values are recieved from server X-Git-Tag: RELEASE_0_2_0_RC1~336 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=9c0c3195b80f7a8782d2e09fb95fbc6c81b94969 update client color values when new values are recieved from server git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2252 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index 21baf08f..896ddf0e 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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: