mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +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_frame = R_Char2Frame(name[4]);
|
||||||
*ret_rotation = R_Char2Rotation(name[5]);
|
*ret_rotation = R_Char2Rotation(name[5]);
|
||||||
if (*ret_frame >= 64)
|
if (*ret_frame >= 64 || *ret_rotation == 255)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (namelen == 8)
|
if (namelen == 8)
|
||||||
{
|
{
|
||||||
*ret_frame2 = R_Char2Frame(name[6]);
|
*ret_frame2 = R_Char2Frame(name[6]);
|
||||||
*ret_rotation2 = R_Char2Rotation(name[7]);
|
*ret_rotation2 = R_Char2Rotation(name[7]);
|
||||||
if (*ret_frame2 >= 64)
|
if (*ret_frame2 >= 64 || *ret_rotation2 == 255)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue