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

model_shared.c

index 77adf302524487f3e726a30137c41f4e78965821..476d2cb96fd426fb3da9c9555d9d25c6ff4c73bf 100644 (file)
@@ -282,6 +282,17 @@ int Mod_FrameGroupify_ParseGroups(const char *buf, mod_framegroupify_parsegroups
                        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, "//"))
                {