From 32a3683e07bb31db1cf8a3f22446a85fea69649e Mon Sep 17 00:00:00 2001 From: LJ Sonic Date: Wed, 3 Apr 2024 22:06:03 +0200 Subject: [PATCH] Fix error message when a patch is missing --- src/r_things.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/r_things.c b/src/r_things.c index 534ce7368..7d9701105 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -355,7 +355,10 @@ static void CheckFrame(const char *sprname) { case SRF_NONE: // no rotations were found for that frame at all - I_Error("R_AddSingleSpriteDef: No patches found for %s frame %d (%c)", sprname, frame, R_Frame2Char(frame)); + if (frame < 64) + I_Error("R_AddSingleSpriteDef: No patches found for %s frame %d (%c)", sprname, frame, R_Frame2Char(frame)); + else + I_Error("R_AddSingleSpriteDef: No patches found for %s frame %d", sprname, frame); break; case SRF_SINGLE: