From: divverent Date: Tue, 1 Nov 2011 11:20:32 +0000 (+0000) Subject: fix a parsing issue for framegroups files X-Git-Tag: xonotic-v0.6.0~197 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3d29da46a822f8835ed158bff7375b18152be69;p=xonotic%2Fdarkplaces.git 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 --- 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);