- some refactoring of olddecorations.cpp to move some repeated code into a subfunction.
This commit is contained in:
parent
b5029e0976
commit
d1b2ef5368
4 changed files with 17 additions and 10 deletions
|
|
@ -61,6 +61,11 @@ FRandom FState::pr_statetics("StateTics");
|
|||
|
||||
cycle_t ActionCycles;
|
||||
|
||||
void FState::SetAction(const char *name)
|
||||
{
|
||||
ActionFunc = FindGlobalActionFunction(name)->Variants[0].Implementation;
|
||||
}
|
||||
|
||||
bool FState::CallAction(AActor *self, AActor *stateowner)
|
||||
{
|
||||
if (ActionFunc != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue