- Added HotWax's A_SetArg.

SVN r1721 (trunk)
This commit is contained in:
Randy Heit 2009-07-16 22:50:58 +00:00
commit 9a16e4b6ea
3 changed files with 30 additions and 1 deletions

View file

@ -2749,3 +2749,22 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_ChangeVelocity)
CheckStopped(self);
}
}
//===========================================================================
//
// A_SetArg
//
//===========================================================================
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetArg)
{
ACTION_PARAM_START(2);
ACTION_PARAM_INT(pos, 0);
ACTION_PARAM_INT(value, 1);
// Set the value of the specified arg
if ((size_t)pos < countof(self->args))
{
self->args[pos] = value;
}
}