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~163^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=49823b1449f7bc41243a27910cbf2e7bc631f47a;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 --- 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);