Fix skipping to the end of def blocks

git-svn-id: https://svn.eduke32.com/eduke32@7938 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-08-09 09:41:05 +00:00 committed by Christoph Oelckers
parent 36366c0c98
commit e7723efcf4
2 changed files with 10 additions and 10 deletions

View file

@ -2701,7 +2701,7 @@ static int32_t defsparser(scriptfile *script)
if (tile != DEFAULTPSKY && (unsigned)tile >= MAXUSERTILES)
{
script->textptr = blockend;
script->textptr = blockend+1;
break;
}
@ -2789,7 +2789,7 @@ static int32_t defsparser(scriptfile *script)
{
initprintf("Error: basepalette: Invalid basepal number on line %s:%d\n",
script->filename, scriptfile_getlinum(script,cmdtokptr));
script->textptr = blockend;
script->textptr = blockend+1;
break;
}
@ -2976,7 +2976,7 @@ static int32_t defsparser(scriptfile *script)
{
initprintf("Error: palookup: Invalid pal number on line %s:%d\n",
script->filename, scriptfile_getlinum(script,cmdtokptr));
script->textptr = blockend;
script->textptr = blockend+1;
break;
}
@ -3283,7 +3283,7 @@ static int32_t defsparser(scriptfile *script)
{
initprintf("Error: blendtable: Invalid blendtable number on line %s:%d\n",
script->filename, scriptfile_getlinum(script,cmdtokptr));
script->textptr = blockend;
script->textptr = blockend+1;
break;
}
@ -3651,7 +3651,7 @@ static int32_t defsparser(scriptfile *script)
char *blockend;
if (scriptfile_getbraces(script,&blockend))
break;
script->textptr = blockend;
script->textptr = blockend+1;
break;
}