- Fixed: The action function version of ACS_NamedExecuteWithResult only accepted three script parameters.

SVN r3741 (trunk)
This commit is contained in:
Randy Heit 2012-07-06 03:09:17 +00:00
parent dc641766d3
commit 5a245af2ad

View file

@ -4203,14 +4203,15 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Warp)
DEFINE_ACTION_FUNCTION_PARAMS(AActor, ACS_NamedExecuteWithResult)
{
ACTION_PARAM_START(4);
ACTION_PARAM_START(5);
ACTION_PARAM_NAME(scriptname, 0);
ACTION_PARAM_INT(arg1, 1);
ACTION_PARAM_INT(arg2, 2);
ACTION_PARAM_INT(arg3, 3);
ACTION_PARAM_INT(arg4, 4);
bool res = !!P_ExecuteSpecial(ACS_ExecuteWithResult, NULL, self, false, -scriptname, arg1, arg2, arg3, 0);
bool res = !!P_ExecuteSpecial(ACS_ExecuteWithResult, NULL, self, false, -scriptname, arg1, arg2, arg3, arg4);
ACTION_SET_RESULT(res);
}