- scriptified a_spectral.cpp.

- consolidated A_Tracer and A_Tracer2.

Note that this commit temporarily disables a few features in order to make it compile.
This commit is contained in:
Christoph Oelckers 2016-11-28 12:55:33 +01:00
commit dc9ee0727a
13 changed files with 160 additions and 220 deletions

View file

@ -1440,6 +1440,25 @@ void AActor::Touch (AActor *toucher)
{
}
DEFINE_ACTION_FUNCTION(AActor, Touch)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_OBJECT(toucher, AActor);
self->Touch(toucher);
return 0;
}
void AActor::CallTouch(AActor *toucher)
{
IFVIRTUAL(AActor, Touch)
{
VMValue params[2] = { (DObject*)this, toucher };
VMFrameStack stack;
stack.Call(func, params, 2, nullptr, 0, nullptr);
}
else Touch(toucher);
}
//============================================================================
//
// AActor :: Grind