From e2db0ed4346f81932a91f1ad1cf608c2c966bf74 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 26 Nov 2001 05:16:04 +0000 Subject: [PATCH] allow oolormap to be set for the last client --- qw/source/cl_ents.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qw/source/cl_ents.c b/qw/source/cl_ents.c index d30c3da6c..c1d0e0d3a 100644 --- a/qw/source/cl_ents.c +++ b/qw/source/cl_ents.c @@ -428,7 +428,7 @@ CL_LinkPacketEntities (void) (*ent)->model = model = cl.model_precache[s1->modelindex]; // set colormap - if (s1->colormap && (s1->colormap < MAX_CLIENTS) + if (s1->colormap && (s1->colormap <= MAX_CLIENTS) && cl.players[s1->colormap - 1].name[0] && !strcmp ((*ent)->model->name, "progs/player.mdl")) { (*ent)->colormap = cl.players[s1->colormap - 1].translations; @@ -618,7 +618,6 @@ CL_ParsePlayerinfo (void) num = MSG_ReadByte (net_message); if (num > MAX_CLIENTS) -// Sys_Error ("CL_ParsePlayerinfo: bad num"); Host_Error ("CL_ParsePlayerinfo: bad num"); state = &cl.frames[parsecountmod].playerstate[num];