mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@628 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
25ac5770c0
commit
37f95e0349
1 changed files with 6 additions and 2 deletions
|
@ -198,12 +198,16 @@ inline int checkcursectnums(int sect)
|
|||
|
||||
inline int ldist(spritetype *s1,spritetype *s2)
|
||||
{
|
||||
return (FindDistance2D(s1->x-s2->x, s1->y-s2->y));
|
||||
int i = FindDistance2D(s1->x-s2->x, s1->y-s2->y);
|
||||
if (!i) return 1;
|
||||
return i;
|
||||
}
|
||||
|
||||
inline int dist(spritetype *s1,spritetype *s2)
|
||||
{
|
||||
return (FindDistance3D(s1->x-s2->x, s1->y-s2->y, (s1->z-s2->z)>>4));
|
||||
int i = FindDistance3D(s1->x-s2->x, s1->y-s2->y, (s1->z-s2->z)>>4);
|
||||
if (!i) return 1;
|
||||
return i;
|
||||
}
|
||||
|
||||
int findplayer(spritetype *s,int *d)
|
||||
|
|
Loading…
Reference in a new issue