From 3f58be7c42b9cec1600bc91970857f91939c30dd Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 5 Nov 2011 14:11:40 +0000 Subject: [PATCH] eat unsupported tokens from framegroups file git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11526 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=551d2284e4f8e88bb4277988c94cb72a73d38c64 --- model_shared.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/model_shared.c b/model_shared.c index b76459b1..3188e607 100644 --- a/model_shared.c +++ b/model_shared.c @@ -299,6 +299,18 @@ int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_parsegroups break; } + // OPTIONAL: remaining unsupported tokens (eat them) + while (strcmp(com_token, "\n")) + { + if (!COM_ParseToken_Simple(&bufptr, true, false, true)) + { + bufptr = NULL; + break; + } + } + if(!bufptr) + break; + //Con_Printf("data: %d %d %d %f %d (%s)\n", i, start, len, fps, loop, name); if(cb) -- 2.39.2