- some refactoring of olddecorations.cpp to move some repeated code into a subfunction.

This commit is contained in:
Christoph Oelckers 2016-02-10 14:38:08 +01:00
commit d1b2ef5368
4 changed files with 17 additions and 10 deletions

View file

@ -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)