From a0c253f81e2a1a102be95409629748c82fc658bd Mon Sep 17 00:00:00 2001
From: LJ Sonic <lamr@free.fr>
Date: Sat, 16 Mar 2024 17:49:34 +0100
Subject: [PATCH] Fix invalid syntax

---
 src/r_things.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/r_things.c b/src/r_things.c
index 4e60e913f0..d21f9465e2 100644
--- a/src/r_things.c
+++ b/src/r_things.c
@@ -340,15 +340,17 @@ static void CheckFrame(const char *sprname)
 			break;
 
 		default:
-			// must have all 8/16 frames
-			UINT8 rotation = ((spriteframe->rotate & SRF_3DGE) ? 16 : 8);
-			while (rotation--)
 			{
-				// we test the patch lump, or the id lump whatever
-				// if it was not loaded the two are LUMPERROR
-				if (spriteframe->lumppat[rotation] == LUMPERROR)
-					I_Error("R_AddSingleSpriteDef: Sprite %s frame %d (%c) is missing rotations (1-%c mode)",
-							sprname, frame, R_Frame2Char(frame), ((spriteframe->rotate & SRF_3DGE) ? 'G' : '8'));
+				// must have all 8/16 frames
+				UINT8 rotation = ((spriteframe->rotate & SRF_3DGE) ? 16 : 8);
+				while (rotation--)
+				{
+					// we test the patch lump, or the id lump whatever
+					// if it was not loaded the two are LUMPERROR
+					if (spriteframe->lumppat[rotation] == LUMPERROR)
+						I_Error("R_AddSingleSpriteDef: Sprite %s frame %d (%c) is missing rotations (1-%c mode)",
+								sprname, frame, R_Frame2Char(frame), ((spriteframe->rotate & SRF_3DGE) ? 'G' : '8'));
+				}
 			}
 			break;
 		}
-- 
GitLab