From: havoc Date: Sat, 30 Dec 2006 09:30:33 +0000 (+0000) Subject: fix stupid bug in CL_SetInfo when checking for pmodel/emodel as key (it was using... X-Git-Tag: xonotic-v0.1.0preview~3731 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=93850e2a2c219ceefd30400cb7aa6edfad006930;p=xonotic%2Fdarkplaces.git fix stupid bug in CL_SetInfo when checking for pmodel/emodel as key (it was using Cmd_Argv) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6669 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index 50c185d6..ad44adc4 100644 --- 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");