]> git.rm.cloudns.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)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 1 Nov 2011 11:36:17 +0000 (12:36 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11507 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=49823b1449f7bc41243a27910cbf2e7bc631f47a

model_shared.c

index 530597d9a1dd02d80fddfc4080a87db39627b5a1..77adf302524487f3e726a30137c41f4e78965821 100644 (file)
@@ -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);