]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a parsing issue for framegroups files
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Nov 2011 11:20:32 +0000 (11:20 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Nov 2011 11:20:32 +0000 (11:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11507 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 653e0c8a723c510c45ec6efc5bfc734ed335153a..0738f14709ed65e1285a7f4d3e30b06a7dcc6848 100644 (file)
@@ -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);