mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 02:12:00 +00:00
371712c53a
- fixed emission of the self pointer in FxVMFunctionCall. I did not realize that the self expression only sets up a register for the value, not pushing it onto the stack.
26 lines
538 B
C++
26 lines
538 B
C++
/*
|
|
#include "actor.h"
|
|
#include "a_action.h"
|
|
#include "a_strifeglobal.h"
|
|
#include "p_enemy.h"
|
|
#include "r_defs.h"
|
|
#include "vm.h"
|
|
*/
|
|
|
|
|
|
DEFINE_ACTION_FUNCTION(AActor, A_WakeOracleSpectre)
|
|
{
|
|
PARAM_SELF_PROLOGUE(AActor);
|
|
|
|
TThinkerIterator<AActor> it(NAME_AlienSpectre3);
|
|
AActor *spectre = it.Next();
|
|
|
|
if (spectre != NULL && spectre->health > 0 && self->target != spectre)
|
|
{
|
|
spectre->Sector->SoundTarget = spectre->LastHeard = self->LastHeard;
|
|
spectre->target = self->target;
|
|
spectre->SetState (spectre->SeeState);
|
|
}
|
|
return 0;
|
|
}
|
|
|