From: lordhavoc Date: Sat, 23 Feb 2002 10:50:01 +0000 (+0000) Subject: CRITICAL fix to checkextension function, it absolutely did not work until this fix. X-Git-Tag: RELEASE_0_2_0_RC1~626 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f98a1248af2ddc543006b058d2defcf98db79e67;p=xonotic%2Fdarkplaces.git CRITICAL fix to checkextension function, it absolutely did not work until this fix. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1554 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/pr_cmds.c b/pr_cmds.c index 1665e497..c002f3cf 100644 --- a/pr_cmds.c +++ b/pr_cmds.c @@ -105,7 +105,7 @@ qboolean checkextension(char *name) while (*e && *e != ' ') e++; if (e - start == len) - if (!strncasecmp(e, name, len)) + if (!strncasecmp(start, name, len)) return true; } return false; @@ -2120,20 +2120,20 @@ void PF_setcolor (void) { client_t *client; int entnum, i; - + entnum = G_EDICTNUM(OFS_PARM0); i = G_FLOAT(OFS_PARM1); - + if (entnum < 1 || entnum > svs.maxclients) { Con_Printf ("tried to setcolor a non-client\n"); return; } - + client = &svs.clients[entnum-1]; client->colors = i; client->edict->v.team = (i & 15) + 1; - + MSG_WriteByte (&sv.reliable_datagram, svc_updatecolors); MSG_WriteByte (&sv.reliable_datagram, entnum - 1); MSG_WriteByte (&sv.reliable_datagram, i);