From 658e78a557861f9ba316c7a731324489d6147dbf Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 1 Nov 2011 11:30:19 +0000 Subject: [PATCH] more parsing fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11508 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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, "//")) { -- 2.39.2