- fixed: Unmorphing a monster did not clear its UNMORPHED flag.

This commit is contained in:
Christoph Oelckers 2019-03-02 13:15:38 +01:00 committed by drfrag
parent d34108f0e9
commit 536c0b7647
2 changed files with 3 additions and 0 deletions

View file

@ -7396,5 +7396,7 @@ void PrintMiscActorInfo(AActor *query)
Printf("FriendlySeeBlocks: %d\n", query->friendlyseeblocks);
Printf("Target: %s\n", query->target ? query->target->GetClass()->TypeName.GetChars() : "-");
Printf("Last enemy: %s\n", query->lastenemy ? query->lastenemy->GetClass()->TypeName.GetChars() : "-");
auto sn = FState::StaticGetStateName(query->state);
Printf("State:%s, Tics: %d", sn.GetChars(), query->tics);
}
}

View file

@ -562,6 +562,7 @@ class MorphedMonster : Actor
unmorphed.args[3] = args[3];
unmorphed.args[4] = args[4];
unmorphed.CopyFriendliness (self, true);
unmorphed.bUnmorphed = false;
UnmorphedMe = NULL;
Substitute(unmorphed);
Destroy ();