mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 09:11:21 +00:00
Fixed PowerMorph setting wrong Owner
Also sets default flash effects.
This commit is contained in:
parent
bcd6c6170e
commit
5ed4f477ed
1 changed files with 2 additions and 2 deletions
|
@ -1884,6 +1884,8 @@ class PowerMorph : Powerup
|
|||
Default
|
||||
{
|
||||
Powerup.Duration -40;
|
||||
PowerMorph.MorphFlash "TeleportFog";
|
||||
PowerMorph.UnmorphFlash "TeleportFog";
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
@ -1901,8 +1903,6 @@ class PowerMorph : Powerup
|
|||
|
||||
if (Owner.Morph(Owner, PlayerClass, MonsterClass, int.max, MorphStyle, MorphFlash, UnmorphFlash))
|
||||
{
|
||||
// Get the real owner; safe because we are not attached to anything yet.
|
||||
Owner = Owner.Alternative;
|
||||
bCreateCopyMoved = true; // Let the caller know the "real" owner has changed (to the morphed actor).
|
||||
MorphedPlayer = Owner.player;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue