- Added PinkSilver's A_LookEx fix.

SVN r1828 (trunk)
This commit is contained in:
Christoph Oelckers 2009-09-14 23:54:55 +00:00
commit 923bf08cdc
3 changed files with 36 additions and 27 deletions

View file

@ -2139,6 +2139,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Respawn)
{
AActor *defs = self->GetDefault();
self->health = defs->health;
// [KS] Don't keep target, because it could be self if the monster committed suicide
self->target = NULL;
self->LastHeard = NULL;
self->flags = (defs->flags & ~MF_FRIENDLY) | (self->flags & MF_FRIENDLY);
self->flags2 = defs->flags2;