From 06b7fc11ea410e38ed7d1d0f6290dd3f1aa86087 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gustaf=20Alh=C3=A4ll?= <gustaf@hanicef.me>
Date: Mon, 20 Jan 2025 17:08:48 +0100
Subject: [PATCH] Remove unused switch-case in P_MobjScaleThink

---
 src/p_mobj.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/p_mobj.c b/src/p_mobj.c
index 5a508e008e..08b84f3658 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -7005,14 +7005,6 @@ static void P_MobjScaleThink(mobj_t *mobj)
 		mobj->z -= (mobj->height - oldheight)/2;
 	else if (correctionType == 2)
 		mobj->z -= mobj->height - oldheight;
-
-	if (mobj->scale == mobj->destscale)
-		/// \todo Lua hook for "reached destscale"?
-		switch (mobj->type)
-		{
-		default:
-			break;
-		}
 }
 
 static void P_MaceSceneryThink(mobj_t *mobj)
-- 
GitLab