- got rid of the tilenum variant of hud_drawsprite.

This commit is contained in:
Christoph Oelckers 2023-05-30 19:08:26 +02:00
parent 0b158dbdd0
commit 54335f7215
3 changed files with 2 additions and 9 deletions

View file

@ -80,12 +80,6 @@ void hud_drawsprite(double sx, double sy, double sz, double a, FTextureID texid,
TAG_DONE);
}
void hud_drawsprite(double sx, double sy, double sz, double a, int picnum, int dashade, int dapalnum, int dastat, double alpha)
{
hud_drawsprite(sx, sy, sz / 65536., a, tileGetTextureID(picnum), dashade, dapalnum, dastat, alpha);
}
//==========================================================================
//
// DFrameBuffer :: DrawRateStuff

View file

@ -5,7 +5,6 @@
extern F2DDrawer twodpsp;
void DrawRateStuff();
void hud_drawsprite(double sx, double sy, double sz, double a, int picnum, int dashade, int dapalnum, int dastat, double alpha = 1);
void hud_drawsprite(double sx, double sy, double sz, double a, FTextureID texid, int dashade, int dapalnum, int dastat, double alpha = 1);
// orientation bits for hud_drawsprite.

View file

@ -7632,7 +7632,7 @@ void pDisplaySprites(PLAYER* pp, double interpfrac)
break;
}
hud_drawsprite(x, y, psp->scale, ang, picnum, shade, pal, flags);
hud_drawsprite(x, y, psp->scale / 65536., ang, tileGetTextureID(picnum), shade, pal, flags);
// do overlays (if any)
for (i = 0; i < SIZ(psp->over); i++)
@ -7652,7 +7652,7 @@ void pDisplaySprites(PLAYER* pp, double interpfrac)
if (picnum)
{
hud_drawsprite((x + psp->over[i].xoff), (y + psp->over[i].yoff), psp->scale, ang, picnum, overlay_shade, pal, flags);
hud_drawsprite((x + psp->over[i].xoff), (y + psp->over[i].yoff), psp->scale / 65536., ang, tileGetTextureID(picnum), overlay_shade, pal, flags);
}
}
}