From e3d29da46a822f8835ed158bff7375b18152be69 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 ::stable-branch::merge=49823b1449f7bc41243a27910cbf2e7bc631f47a --- model_shared.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model_shared.c b/model_shared.c index 530597d9..77adf302 100644 --- a/model_shared.c +++ b/model_shared.c @@ -291,11 +291,14 @@ int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_parsegroups { 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