From f98a1248af2ddc543006b058d2defcf98db79e67 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Sat, 23 Feb 2002 10:50:01 +0000 Subject: [PATCH] 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 --- pr_cmds.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.39.2