'useractor' protection for newbies. :/

git-svn-id: https://svn.eduke32.com/eduke32@267 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-08-17 23:07:43 +00:00
parent 35df54c3a8
commit 929ab76c77

View file

@ -2722,6 +2722,14 @@ char parsecommand(void)
parsing_item_name[j] = 0;
j = *scriptptr;
if(j > 2)
{
ReportError(-1);
error++;
initprintf("%s:%ld: error: invalid useractor type.\n",compilefile,line_number);
}
transnum(LABEL_DEFINE);
scriptptr--;
actorscrptr[*scriptptr] = parsing_actor;