Prohibit ACS_ExecuteWait inside functions

This commit is contained in:
Randy Heit 2015-02-24 19:06:05 -06:00
parent 0024e3ac6c
commit 95c8faaa22

View file

@ -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);