]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix stupid bug in CL_SetInfo when checking for pmodel/emodel as key (it was using...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Dec 2006 09:30:33 +0000 (09:30 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Dec 2006 09:30:33 +0000 (09:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6669 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 50c185d634ced44d80bda2ed3262be7f66e7a3e7..ad44adc4861c887e1b588adbf766cf45421f97ee 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -205,7 +205,7 @@ void CL_ClearState(void)
 
 void CL_SetInfo(const char *key, const char *value, qboolean send, qboolean allowstarkey, qboolean allowmodel, qboolean quiet)
 {
-       if (strchr(key, '\"') || strchr(value, '\"') || (!allowstarkey && key[0] == '*') || (!allowmodel && (!strcasecmp(Cmd_Argv(1), "pmodel") || !strcasecmp(Cmd_Argv(1), "emodel"))))
+       if (strchr(key, '\"') || strchr(value, '\"') || (!allowstarkey && key[0] == '*') || (!allowmodel && (!strcasecmp(key, "pmodel") || !strcasecmp(key, "emodel"))))
        {
                if (!quiet)
                        Con_Printf("Can't setinfo \"%s\" \"%s\"\n");