Fix GetFramesAndRotationsFromShortLumpName

This commit is contained in:
LJ Sonic 2024-03-15 21:02:41 +01:00
parent 33f176fd5b
commit 42c610af9c

View file

@ -253,14 +253,14 @@ static boolean GetFramesAndRotationsFromLumpName(
*ret_frame = R_Char2Frame(name[4]);
*ret_rotation = R_Char2Rotation(name[5]);
if (*ret_frame >= 64)
if (*ret_frame >= 64 || *ret_rotation == 255)
return false;
if (namelen == 8)
{
*ret_frame2 = R_Char2Frame(name[6]);
*ret_rotation2 = R_Char2Rotation(name[7]);
if (*ret_frame2 >= 64)
if (*ret_frame2 >= 64 || *ret_rotation2 == 255)
return false;
}
else