ldist/dist tweak

git-svn-id: https://svn.eduke32.com/eduke32@5819 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2016-08-27 01:39:56 +00:00
parent 3f641d314f
commit 51c47a9ef7

View file

@ -189,15 +189,15 @@ int32_t maybe_append_ext(char *wbuf, int32_t wbufsiz, const char *fn, const char
int32_t ldist(const void *s1, const void *s2)
{
uspritetype const *const sp1 = (uspritetype const *)s1;
uspritetype const *const sp2 = (uspritetype const *)s2;
vec2_t const *const sp1 = (vec2_t const *)s1;
vec2_t const *const sp2 = (vec2_t const *)s2;
return sepldist(sp1->x - sp2->x, sp1->y - sp2->y);
}
int32_t dist(const void *s1, const void *s2)
{
uspritetype const *const sp1 = (uspritetype const *)s1;
uspritetype const *const sp2 = (uspritetype const *)s2;
vec3_t const *const sp1 = (vec3_t const *)s1;
vec3_t const *const sp2 = (vec3_t const *)s2;
return sepdist(sp1->x - sp2->x, sp1->y - sp2->y, sp1->z - sp2->z);
}