mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Fix GetFramesAndRotationsFromShortLumpName
This commit is contained in:
parent
33f176fd5b
commit
42c610af9c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue