mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-03-06 08:41:04 +00:00
Use auto in ldist() and dist() because it looks nicer than vec3_t const *const
git-svn-id: https://svn.eduke32.com/eduke32@7160 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
06f0e5e946
commit
4206cc1786
1 changed files with 4 additions and 4 deletions
|
@ -215,15 +215,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)
|
int32_t ldist(const void *s1, const void *s2)
|
||||||
{
|
{
|
||||||
vec2_t const *const sp1 = (vec2_t const *)s1;
|
auto sp1 = (vec2_t const *)s1;
|
||||||
vec2_t const *const sp2 = (vec2_t const *)s2;
|
auto sp2 = (vec2_t const *)s2;
|
||||||
return sepldist(sp1->x - sp2->x, sp1->y - sp2->y);
|
return sepldist(sp1->x - sp2->x, sp1->y - sp2->y);
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t dist(const void *s1, const void *s2)
|
int32_t dist(const void *s1, const void *s2)
|
||||||
{
|
{
|
||||||
vec3_t const *const sp1 = (vec3_t const *)s1;
|
auto sp1 = (vec3_t const *)s1;
|
||||||
vec3_t const *const sp2 = (vec3_t const *)s2;
|
auto sp2 = (vec3_t const *)s2;
|
||||||
return sepdist(sp1->x - sp2->x, sp1->y - sp2->y, sp1->z - sp2->z);
|
return sepdist(sp1->x - sp2->x, sp1->y - sp2->y, sp1->z - sp2->z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue