From da4752d7ec74534c4de3618894447f9fbcd58d06 Mon Sep 17 00:00:00 2001 From: Boondorl Date: Fri, 10 May 2024 15:33:56 -0400 Subject: [PATCH] Fixed unmorphed Actors still ticking --- src/playsim/p_mobj.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/playsim/p_mobj.cpp b/src/playsim/p_mobj.cpp index 671a65238..d5fdf8574 100644 --- a/src/playsim/p_mobj.cpp +++ b/src/playsim/p_mobj.cpp @@ -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) {