mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 23:50:40 +00:00
engine.c: use swapptr() instead of swaplong() in two cases in drawmasks().
git-svn-id: https://svn.eduke32.com/eduke32@5315 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2aa732128f
commit
b408cb641c
1 changed files with 2 additions and 2 deletions
|
@ -9823,7 +9823,7 @@ killsprite:
|
||||||
for (int32_t l=i; l>=0; l-=gap)
|
for (int32_t l=i; l>=0; l-=gap)
|
||||||
{
|
{
|
||||||
if (spritesxyz[l].y <= spritesxyz[l+gap].y) break;
|
if (spritesxyz[l].y <= spritesxyz[l+gap].y) break;
|
||||||
swaplong(&tspriteptr[l],&tspriteptr[l+gap]);
|
swapptr(&tspriteptr[l],&tspriteptr[l+gap]);
|
||||||
swaplong(&spritesxyz[l].x,&spritesxyz[l+gap].x);
|
swaplong(&spritesxyz[l].x,&spritesxyz[l+gap].x);
|
||||||
swaplong(&spritesxyz[l].y,&spritesxyz[l+gap].y);
|
swaplong(&spritesxyz[l].y,&spritesxyz[l+gap].y);
|
||||||
}
|
}
|
||||||
|
@ -9864,7 +9864,7 @@ killsprite:
|
||||||
for (int32_t l=i; l<k; l++)
|
for (int32_t l=i; l<k; l++)
|
||||||
if (klabs(spritesxyz[k].z-globalposz) < klabs(spritesxyz[l].z-globalposz))
|
if (klabs(spritesxyz[k].z-globalposz) < klabs(spritesxyz[l].z-globalposz))
|
||||||
{
|
{
|
||||||
swaplong(&tspriteptr[k],&tspriteptr[l]);
|
swapptr(&tspriteptr[k],&tspriteptr[l]);
|
||||||
vec3_t tv3 = spritesxyz[k];
|
vec3_t tv3 = spritesxyz[k];
|
||||||
spritesxyz[k] = spritesxyz[l];
|
spritesxyz[k] = spritesxyz[l];
|
||||||
spritesxyz[l] = tv3;
|
spritesxyz[l] = tv3;
|
||||||
|
|
Loading…
Reference in a new issue