]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
Various graphical tweaks (mainly particle related), some code removed.
[xonotic/darkplaces.git] / cl_parse.c
index da4055899cd667f324edaf2018c6208b56bcbd50..38acf24afae175e06fe0bb8197ba97d6659904c4 100644 (file)
@@ -103,7 +103,7 @@ entity_t    *CL_EntityNum (int num)
                        Host_Error ("CL_EntityNum: %i is an invalid number",num);
                while (cl.num_entities<=num)
                {
-                       cl_entities[cl.num_entities].colormap = vid.colormap;
+                       cl_entities[cl.num_entities].colormap = 0; //vid.colormap;
                        cl.num_entities++;
                }
        }
@@ -513,7 +513,7 @@ void CL_ParseUpdate (int bits)
                else
                        forcelink = true;       // hack to make null model players work
                if (num > 0 && num <= cl.maxclients)
-                       R_TranslatePlayerSkin (num - 1);
+                       R_TranslatePlayerSkin(num - 1);
        }
 
        ent->frame = ((bits & U_FRAME) ? MSG_ReadByte() : (baseline->frame & 0xFF));
@@ -521,12 +521,12 @@ void CL_ParseUpdate (int bits)
        i = bits & U_COLORMAP ? MSG_ReadByte() : baseline->colormap;
        ent->deltabaseline.colormap = i;
        if (!i)
-               ent->colormap = vid.colormap;
+               ent->colormap = 0; //vid.colormap;
        else
        {
                if (i > cl.maxclients)
                        Host_Error ("i >= cl.maxclients");
-               ent->colormap = vid.colormap; // cl.scores[i-1].translations;
+               ent->colormap = i; //vid.colormap; // cl.scores[i-1].translations;
        }
 
        skin = bits & U_SKIN ? MSG_ReadByte() : baseline->skin;
@@ -534,7 +534,7 @@ void CL_ParseUpdate (int bits)
        {
                ent->skinnum = skin;
                if (num > 0 && num <= cl.maxclients)
-                       R_TranslatePlayerSkin (num - 1);
+                       R_TranslatePlayerSkin(num - 1);
        }
        ent->deltabaseline.skin = skin;
 
@@ -765,7 +765,7 @@ void CL_ParseStatic (void)
 // copy it to the current state
        ent->model = cl.model_precache[ent->baseline.modelindex];
        ent->frame = ent->baseline.frame;
-       ent->colormap = vid.colormap;
+       ent->colormap = 0; //vid.colormap;
        ent->skinnum = ent->baseline.skin;
        ent->effects = ent->baseline.effects;
        ent->alpha = 1;
@@ -959,7 +959,7 @@ void CL_ParseServerMessage (void)
                        if (i >= cl.maxclients)
                                Host_Error ("CL_ParseServerMessage: svc_updatecolors > MAX_SCOREBOARD");
                        cl.scores[i].colors = MSG_ReadByte ();
-                       R_TranslatePlayerSkin (i);
+                       R_TranslatePlayerSkin(i);
                        break;
                        
                case svc_particle: