mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
ldist/dist tweak
git-svn-id: https://svn.eduke32.com/eduke32@5819 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3f641d314f
commit
51c47a9ef7
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue