git-svn-id: https://svn.eduke32.com/eduke32@628 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-02-25 07:31:39 +00:00
parent 25ac5770c0
commit 37f95e0349

View file

@ -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)