Sanitize A_GetFurthestAngle() return value

git-svn-id: https://svn.eduke32.com/eduke32@7669 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:55:49 +00:00 committed by Christoph Oelckers
parent f62d6c919c
commit c3f7c26708
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ int A_GetFurthestAngle(int const spriteNum, int const angDiv)
auto const pSprite = (uspriteptr_t)&sprite[spriteNum];
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 const angIncs = tabledivide32_noinline(2048, angDiv);