Browse Source

client: ammohistory: fix rendering history with bigger HUD sprites

hl25hud
Alibek Omarov 12 months ago
parent
commit
0362b75fc1
  1. 2
      cl_dll/ammohistory.cpp

2
cl_dll/ammohistory.cpp

@ -131,7 +131,7 @@ int HistoryResource::DrawAmmoHistory( float flTime ) @@ -131,7 +131,7 @@ int HistoryResource::DrawAmmoHistory( float flTime )
// Draw the pic
int ypos = ScreenHeight - (AMMO_PICKUP_PICK_HEIGHT + (AMMO_PICKUP_GAP * i));
int xpos = ScreenWidth - 24;
int xpos = ScreenWidth - (rcPic.right - rcPic.left);
if( spr && *spr ) // weapon isn't loaded yet so just don't draw the pic
{
// the dll has to make sure it has sent info the weapons you need

Loading…
Cancel
Save