Skip to content

Commit

Permalink
Fixed unmorphed Actors still ticking
Browse files Browse the repository at this point in the history
  • Loading branch information
Boondorl authored and madame-rachelle committed May 11, 2024
1 parent 9129f01 commit da4752d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/playsim/p_mobj.cpp
Expand Up @@ -3810,8 +3810,11 @@ void AActor::Tick ()

// Check for Actor unmorphing, but only on the thing that is the morphed Actor.
// Players do their own special checking for this.
if (alternative != nullptr && !(flags & MF_UNMORPHED) && player == nullptr)
if (alternative != nullptr && player == nullptr)
{
if (flags & MF_UNMORPHED)
return;

int res = false;
IFVIRTUAL(AActor, CheckUnmorph)
{
Expand Down

0 comments on commit da4752d

Please sign in to comment.