SVN r312 (trunk)
This commit is contained in:
parent
1b879c61c2
commit
38f650f7c5
2 changed files with 10 additions and 4 deletions
|
|
@ -109,12 +109,15 @@ bool ACustomInventory::CallStateChain (AActor *actor, FState * State)
|
|||
while (State != NULL)
|
||||
{
|
||||
// Assume success. The code pointer will set this to false if necessary
|
||||
StateCall.Result = true;
|
||||
CallingState = StateCall.State = State;
|
||||
State->GetAction() (actor);
|
||||
if (State->GetAction() != NULL)
|
||||
{
|
||||
StateCall.Result = true;
|
||||
State->GetAction() (actor);
|
||||
// collect all the results. Even one successful call signifies overall success.
|
||||
result |= StateCall.Result;
|
||||
}
|
||||
|
||||
// collect all the results. Even one successful call signifies overall success.
|
||||
result |= StateCall.Result;
|
||||
|
||||
// Since there are no delays it is a good idea to check for infinite loops here!
|
||||
counter++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue