mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: Unmorphing a monster did not clear its UNMORPHED flag.
This commit is contained in:
parent
4cf90d70ae
commit
0febe20a08
2 changed files with 3 additions and 0 deletions
|
@ -7396,5 +7396,7 @@ void PrintMiscActorInfo(AActor *query)
|
||||||
Printf("FriendlySeeBlocks: %d\n", query->friendlyseeblocks);
|
Printf("FriendlySeeBlocks: %d\n", query->friendlyseeblocks);
|
||||||
Printf("Target: %s\n", query->target ? query->target->GetClass()->TypeName.GetChars() : "-");
|
Printf("Target: %s\n", query->target ? query->target->GetClass()->TypeName.GetChars() : "-");
|
||||||
Printf("Last enemy: %s\n", query->lastenemy ? query->lastenemy->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[3] = args[3];
|
||||||
unmorphed.args[4] = args[4];
|
unmorphed.args[4] = args[4];
|
||||||
unmorphed.CopyFriendliness (self, true);
|
unmorphed.CopyFriendliness (self, true);
|
||||||
|
unmorphed.bUnmorphed = false;
|
||||||
UnmorphedMe = NULL;
|
UnmorphedMe = NULL;
|
||||||
Substitute(unmorphed);
|
Substitute(unmorphed);
|
||||||
Destroy ();
|
Destroy ();
|
||||||
|
|
Loading…
Reference in a new issue