From 979bc471baea7798b9914dcaeda141cc277cd7bf Mon Sep 17 00:00:00 2001
From: MascaraSnake <jonassauer27@gmail.com>
Date: Sun, 9 Oct 2022 15:27:07 +0200
Subject: [PATCH] Conveyor belts: Only apply flipspecial if it's a 3D floor

---
 src/p_spec.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/p_spec.c b/src/p_spec.c
index d567016349..b9343b4de0 100644
--- a/src/p_spec.c
+++ b/src/p_spec.c
@@ -7514,10 +7514,13 @@ static void Add_Scroller(INT32 type, fixed_t dx, fixed_t dy, INT32 control, INT3
 	if (type == sc_carry || type == sc_carry_ceiling)
 	{
 		sectors[affectee].specialflags |= SSF_CONVEYOR;
-		if ((type == sc_carry_ceiling) ^ is3dblock)
-			sectors[affectee].flags |= MSF_FLIPSPECIAL_CEILING;
-		else
-			sectors[affectee].flags |= MSF_FLIPSPECIAL_FLOOR;
+		if (is3dblock)
+		{
+			if (type == sc_carry)
+				sectors[affectee].flags |= MSF_FLIPSPECIAL_CEILING;
+			else
+				sectors[affectee].flags |= MSF_FLIPSPECIAL_FLOOR;
+		}
 	}
 	P_AddThinker(THINK_MAIN, &s->thinker);
 }
-- 
GitLab