mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-15 00:41:30 +00:00
Prohibit ACS_ExecuteWait inside functions
This commit is contained in:
parent
0024e3ac6c
commit
95c8faaa22
1 changed files with 8 additions and 0 deletions
8
parse.c
8
parse.c
|
@ -1285,11 +1285,19 @@ static boolean ProcessStatement(statement_t owner)
|
|||
}
|
||||
break;
|
||||
case TK_ACSEXECUTEWAIT:
|
||||
if(InsideFunction)
|
||||
{
|
||||
ERR_Error(ERR_LATENT_IN_FUNC, YES);
|
||||
}
|
||||
tk_SpecialArgCount = 1 | (5<<16);
|
||||
tk_SpecialValue = 80;
|
||||
LeadingLineSpecial(YES);
|
||||
break;
|
||||
case TK_ACSNAMEDEXECUTEWAIT:
|
||||
if(InsideFunction)
|
||||
{
|
||||
ERR_Error(ERR_LATENT_IN_FUNC, YES);
|
||||
}
|
||||
tk_SpecialArgCount = 1 | (5<<16);
|
||||
tk_SpecialValue = -39;
|
||||
LeadingFunction(YES);
|
||||
|
|
Loading…
Reference in a new issue