- Fixed: When PlayerIsGone() destroys a morphed player, it needs to destroy the unmorphed player too.
- Fixed: Destroying a morphed player would try to unmorph the player twice. SVN r3611 (trunk)
This commit is contained in:
parent
0835230454
commit
1656744827
5 changed files with 31 additions and 17 deletions
|
|
@ -202,6 +202,7 @@ bool P_UndoPlayerMorph (player_t *activator, player_t *player, int unmorphflag,
|
|||
next = item->Inventory;
|
||||
if (item->IsKindOf(RUNTIME_CLASS(APowerMorph)))
|
||||
{
|
||||
static_cast<APowerMorph *>(item)->SetNoCallUndoMorph();
|
||||
item->Destroy();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue