2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-25 11:19:39 +01:00

client: ammohistory: fix rendering history with bigger HUD sprites

This commit is contained in:
Alibek Omarov 2023-12-21 04:12:25 +03:00 committed by Andrey Akhmichin
parent c299495477
commit 58bc7ea53e

View File

@ -131,7 +131,7 @@ int HistoryResource::DrawAmmoHistory( float flTime )
// Draw the pic // Draw the pic
int ypos = ScreenHeight - (AMMO_PICKUP_PICK_HEIGHT + (AMMO_PICKUP_GAP * i)); 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 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 // the dll has to make sure it has sent info the weapons you need