- Changed state calls to use the VM's standard return value mechanism. StateCallData has been
removed as a result, so now action functions take a minimum of three parameters rather than four. SVN r3770 (scripting)
This commit is contained in:
parent
e1a2f3b546
commit
fcceeb814a
7 changed files with 164 additions and 162 deletions
|
|
@ -57,13 +57,12 @@ extern void ClearStrifeTypes();
|
|||
|
||||
TArray<PClassActor *> PClassActor::AllActorClasses;
|
||||
|
||||
bool FState::CallAction(AActor *self, AActor *stateowner, StateCallData *statecall)
|
||||
bool FState::CallAction(AActor *self, AActor *stateowner)
|
||||
{
|
||||
if (ActionFunc != NULL)
|
||||
{
|
||||
//ActionFunc(self, stateowner, this, ParameterIndex-1, statecall);
|
||||
VMFrameStack stack;
|
||||
VMValue params[4] = { self, stateowner, VMValue(this, ATAG_STATE), statecall };
|
||||
VMValue params[3] = { self, stateowner, VMValue(this, ATAG_STATE) };
|
||||
stack.Call(ActionFunc, params, countof(params), NULL, 0, NULL);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue