mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
FIx some player color issues found by valgrind.
This commit is contained in:
parent
8fa92bf206
commit
602cd84e21
2 changed files with 4 additions and 2 deletions
|
@ -608,8 +608,8 @@ CL_RelinkEntities (void)
|
|||
ent->skinnum = new->skinnum;
|
||||
if (i <= cl.maxclients) {
|
||||
ent->skin = mod_funcs->Skin_SetColormap (ent->skin, i);
|
||||
mod_funcs->Skin_SetTranslation (i, cl.scores[i].topcolor,
|
||||
cl.scores[i].bottomcolor);
|
||||
mod_funcs->Skin_SetTranslation (i, cl.scores[i - 1].topcolor,
|
||||
cl.scores[i - 1].bottomcolor);
|
||||
}
|
||||
}
|
||||
ent->scale = new->scale;
|
||||
|
|
|
@ -363,6 +363,8 @@ CL_ParseServerInfo (void)
|
|||
for (i = 0; i < cl.maxclients; i++) {
|
||||
cl.scores[i].info = Info_ParseString ("name\\", 0, 0);
|
||||
cl.scores[i].name = Info_Key (cl.scores[i].info, "name");
|
||||
cl.scores[i].topcolor = 0;
|
||||
cl.scores[i].bottomcolor = 0;
|
||||
}
|
||||
|
||||
// parse gametype
|
||||
|
|
Loading…
Reference in a new issue