]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
more parsing fix
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Nov 2011 11:30:19 +0000 (11:30 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Nov 2011 11:30:19 +0000 (11:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11508 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 0738f14709ed65e1285a7f4d3e30b06a7dcc6848..b0a331b3d7a9ae6bbcd65cf7ef40a9d01186efcb 100644 (file)
@@ -282,6 +282,17 @@ static int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_pars
                        loop = true;
                }
 
+               if (strcmp(com_token, "\n") && strcmp(com_token, "//"))
+               {
+                       while (COM_ParseToken_Simple(&bufptr, true, false, false)) // fetch newline
+                       {
+                               if (strcmp(com_token, "\n") && strcmp(com_token, "//"))
+                                       Con_Printf("framegroups file: extra data (%s) found, skipped\n", com_token);
+                               else
+                                       break;
+                       }
+               }
+
                name = NULL;
                if(!strcmp(com_token, "//"))
                {