Use FindDistance3D() instead of sepdist() directly because we don't need/want it inlined here

git-svn-id: https://svn.eduke32.com/eduke32@6816 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-06 01:43:03 +00:00
parent 55a436651a
commit ad75d09d57

View file

@ -223,7 +223,7 @@ SKIPWALLCHECK:
goto next_sprite;
#endif
int32_t const spriteDist = pOther->picnum == APLAYER
? sepdist(pSprite->x - pOther->x, pSprite->y - pOther->y, pSprite->z - (pOther->z - PHEIGHT))
? FindDistance3D(pSprite->x - pOther->x, pSprite->y - pOther->y, pSprite->z - (pOther->z - PHEIGHT))
: dist(pSprite, pOther);
if (spriteDist >= blastRadius || !cansee(pOther->x, pOther->y, pOther->z - ZOFFSET3, pOther->sectnum, pSprite->x,