From: divverent Date: Tue, 1 Nov 2011 11:30:19 +0000 (+0000) Subject: more parsing fix X-Git-Tag: xonotic-v0.6.0~196 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0938d8646e4f35a30cdb945d4107b4488f1450c;p=xonotic%2Fdarkplaces.git more parsing fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11508 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=658e78a557861f9ba316c7a731324489d6147dbf --- diff --git a/model_shared.c b/model_shared.c index 77adf302..476d2cb9 100644 --- a/model_shared.c +++ b/model_shared.c @@ -282,6 +282,17 @@ int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_parsegroups 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, "//")) {