mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
55a436651a
commit
ad75d09d57
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue