mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
'useractor' protection for newbies. :/
git-svn-id: https://svn.eduke32.com/eduke32@267 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
35df54c3a8
commit
929ab76c77
1 changed files with 8 additions and 0 deletions
|
@ -2722,6 +2722,14 @@ char parsecommand(void)
|
||||||
parsing_item_name[j] = 0;
|
parsing_item_name[j] = 0;
|
||||||
|
|
||||||
j = *scriptptr;
|
j = *scriptptr;
|
||||||
|
|
||||||
|
if(j > 2)
|
||||||
|
{
|
||||||
|
ReportError(-1);
|
||||||
|
error++;
|
||||||
|
initprintf("%s:%ld: error: invalid useractor type.\n",compilefile,line_number);
|
||||||
|
}
|
||||||
|
|
||||||
transnum(LABEL_DEFINE);
|
transnum(LABEL_DEFINE);
|
||||||
scriptptr--;
|
scriptptr--;
|
||||||
actorscrptr[*scriptptr] = parsing_actor;
|
actorscrptr[*scriptptr] = parsing_actor;
|
||||||
|
|
Loading…
Reference in a new issue