]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
eat unsupported tokens from framegroups file
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Nov 2011 14:11:40 +0000 (14:11 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 5 Nov 2011 14:10:45 +0000 (15:10 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11526 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=551d2284e4f8e88bb4277988c94cb72a73d38c64

model_shared.c

index b76459b1923bb42f05fa6ffcb3a4db07d1abc958..3188e60793c99b9de74662256106f5cffdc48aff 100644 (file)
@@ -299,6 +299,18 @@ int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_parsegroups
                                break;
                }
 
+               // OPTIONAL: remaining unsupported tokens (eat them)
+               while (strcmp(com_token, "\n"))
+               {
+                       if (!COM_ParseToken_Simple(&bufptr, true, false, true))
+                       {
+                               bufptr = NULL;
+                               break;
+                       }
+               }
+               if(!bufptr)
+                       break;
+
                //Con_Printf("data: %d %d %d %f %d (%s)\n", i, start, len, fps, loop, name);
 
                if(cb)