]> de.git.xonotic.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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Nov 2011 14:11:40 +0000 (14:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11526 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 05cb342750acd47a69e3d9c51cf353a4e7c30d47..a1fc163f36d4465e4094673e3d63c651d5ca1409 100644 (file)
@@ -299,6 +299,18 @@ static int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_pars
                                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)