mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
- fixed: Unmorphing a monster did not clear its UNMORPHED flag.
This commit is contained in:
parent
d34108f0e9
commit
536c0b7647
2 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue