client: ammohistory: fix rendering history with bigger HUD sprites

This commit is contained in:
Alibek Omarov 2023-12-21 04:12:25 +03:00
parent 5ed4d3671b
commit 0362b75fc1
1 changed files with 1 additions and 1 deletions

View File

@ -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