Skip to content

Commit

Permalink
- got rid of the tilenum variant of hud_drawsprite.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 30, 2023
1 parent 0b158db commit 54335f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
6 changes: 0 additions & 6 deletions source/core/gamehud.cpp
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion source/core/gamehud.h
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions source/games/sw/src/panel.cpp
Expand Up @@ -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++)
Expand All @@ -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);
}
}
}
Expand Down

0 comments on commit 54335f7

Please sign in to comment.