]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
CRITICAL fix to checkextension function, it absolutely did not work until this fix.
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Feb 2002 10:50:01 +0000 (10:50 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Feb 2002 10:50:01 +0000 (10:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1554 d7cf8633-e32d-0410-b094-e92efae38249

pr_cmds.c

index 1665e497119ee3c2bffbd41019a06637c34c6461..c002f3cfe5eb2571c27f8a5b149ae337ea299e38 100644 (file)
--- 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);