From: divverent Date: Tue, 1 Nov 2011 11:30:19 +0000 (+0000) Subject: more parsing fix X-Git-Tag: xonotic-v0.6.0~163^2~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=658e78a557861f9ba316c7a731324489d6147dbf;p=xonotic%2Fdarkplaces.git more parsing fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11508 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index 0738f147..b0a331b3 100644 --- a/model_shared.c +++ b/model_shared.c @@ -282,6 +282,17 @@ static int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_pars loop = true; } + if (strcmp(com_token, "\n") && strcmp(com_token, "//")) + { + while (COM_ParseToken_Simple(&bufptr, true, false, false)) // fetch newline + { + if (strcmp(com_token, "\n") && strcmp(com_token, "//")) + Con_Printf("framegroups file: extra data (%s) found, skipped\n", com_token); + else + break; + } + } + name = NULL; if(!strcmp(com_token, "//")) {