- 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:
parent
b171d6e21f
commit
dc9ee0727a
13 changed files with 160 additions and 220 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue