From 6a1157f2abf5f0932e68a511029b4c8144cd70c7 Mon Sep 17 00:00:00 2001
From: Nep2Disk <suesakamoto@outlook.com>
Date: Sat, 1 Mar 2025 15:31:00 +0000
Subject: [PATCH 1/2] This should be flags2

---
 src/p_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p_user.c b/src/p_user.c
index 45a65668b..df6b05b2c 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -1683,7 +1683,7 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj)
 	ghost->skin = mobj->skin;
 
 	if (mobj->flags2 & MF2_OBJECTFLIP)
-		ghost->flags |= MF2_OBJECTFLIP;
+		ghost->flags2 |= MF2_OBJECTFLIP;
 
 	if (!(mobj->flags & MF_DONTENCOREMAP))
 		mobj->flags &= ~MF_DONTENCOREMAP;
-- 
GitLab


From a2d948956d1a6560f8575d67d2b7223bc6d60351 Mon Sep 17 00:00:00 2001
From: Nep2Disk <suesakamoto@outlook.com>
Date: Wed, 26 Mar 2025 19:05:56 +0000
Subject: [PATCH 2/2] Fix another ghost flag problem as well

---
 src/p_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p_user.c b/src/p_user.c
index df6b05b2c..5194d6e69 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -1686,7 +1686,7 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj)
 		ghost->flags2 |= MF2_OBJECTFLIP;
 
 	if (!(mobj->flags & MF_DONTENCOREMAP))
-		mobj->flags &= ~MF_DONTENCOREMAP;
+		ghost->flags &= ~MF_DONTENCOREMAP;
 
 	// Copy interpolation data :)
 	ghost->old_x = mobj->old_x2;
-- 
GitLab