From 49823b1449f7bc41243a27910cbf2e7bc631f47a Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 1 Nov 2011 11:20:32 +0000 Subject: [PATCH] fix a parsing issue for framegroups files git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11507 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model_shared.c b/model_shared.c index 653e0c8a..0738f147 100644 --- a/model_shared.c +++ b/model_shared.c @@ -291,11 +291,14 @@ static int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_pars { name = com_token; // skip to EOL - while (*bufptr && *bufptr != '\n' && *bufptr != '\r') + while (*bufptr && !(*bufptr == '\n' || *bufptr == '\r')) + bufptr++; + while (*bufptr && (*bufptr == '\n' || *bufptr == '\r')) bufptr++; } } } + Con_Printf("data: %d %d %d %f %d (%s)\n", i, start, len, fps, loop, name); if(cb) cb(i, start, len, fps, loop, name, pass); -- 2.39.2