- consolidated the sector action classes.

This can be done with a lot less overhead by using one of the object's properties to store the activation flag, so that all the nearly redundant trigger methods can be folded into one.
This commit is contained in:
Christoph Oelckers 2017-01-13 01:06:37 +01:00
commit cf39af0642
4 changed files with 80 additions and 220 deletions

View file

@ -2483,7 +2483,7 @@ bool AMusicChanger::DoTriggerAction (AActor *triggerer, int activationType)
triggerer->player->MUSINFOtics = 30;
}
}
return Super::DoTriggerAction (triggerer, activationType);
return tracer == nullptr? false : barrier_cast<ASectorAction *>(tracer)->DoTriggerAction(triggerer, activationType);
}
void AMusicChanger::PostBeginPlay()