mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Sanitize A_GetFurthestAngle() return value
git-svn-id: https://svn.eduke32.com/eduke32@7669 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f62d6c919c
commit
c3f7c26708
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ int A_GetFurthestAngle(int const spriteNum, int const angDiv)
|
||||||
auto const pSprite = (uspriteptr_t)&sprite[spriteNum];
|
auto const pSprite = (uspriteptr_t)&sprite[spriteNum];
|
||||||
|
|
||||||
if (pSprite->picnum != APLAYER && (AC_COUNT(actor[spriteNum].t_data)&63) > 2)
|
if (pSprite->picnum != APLAYER && (AC_COUNT(actor[spriteNum].t_data)&63) > 2)
|
||||||
return pSprite->ang + 1024;
|
return (pSprite->ang + 1024) & 2047;
|
||||||
|
|
||||||
int furthestAngle = 0;
|
int furthestAngle = 0;
|
||||||
int const angIncs = tabledivide32_noinline(2048, angDiv);
|
int const angIncs = tabledivide32_noinline(2048, angDiv);
|
||||||
|
|
Loading…
Reference in a new issue