Fix error message when a patch is missing

This commit is contained in:
LJ Sonic 2024-04-03 22:06:03 +02:00
parent f406e9bbb5
commit 32a3683e07

View file

@ -355,7 +355,10 @@ static void CheckFrame(const char *sprname)
{ {
case SRF_NONE: case SRF_NONE:
// no rotations were found for that frame at all // no rotations were found for that frame at all
if (frame < 64)
I_Error("R_AddSingleSpriteDef: No patches found for %s frame %d (%c)", sprname, frame, R_Frame2Char(frame)); 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; break;
case SRF_SINGLE: case SRF_SINGLE: