client: probably somewhere iso646.h got included, I don't want to search where, just rename or and other variables
This commit is contained in:
parent
edd628b154
commit
36e0eb3e36
@ -202,20 +202,20 @@ int CHudHealth::Draw(float flTime)
|
||||
// Draw old health
|
||||
if(m_iOldHealth > m_iHealth)
|
||||
{
|
||||
int or,og,ob,oa;
|
||||
int ohr,ohg,ohb,oha;
|
||||
int iScissorX,iScissorWidth;
|
||||
|
||||
oa = 225;
|
||||
oha = 225;
|
||||
|
||||
UnpackRGB(or,og,ob,RGB_YELLOWISH);
|
||||
ScaleColors(or,og,ob,oa);
|
||||
UnpackRGB(ohr,ohg,ohb,RGB_YELLOWISH);
|
||||
ScaleColors(ohr,ohg,ohb,oha);
|
||||
|
||||
iScissorX = x + iHealthWidth;
|
||||
iScissorWidth = ((prc->right-prc->left) * m_iOldHealth / 100) - iHealthWidth;
|
||||
|
||||
SPR_EnableScissor(iScissorX,0,iScissorWidth,ScreenHeight);
|
||||
|
||||
SPR_Set(gHUD.GetSprite(m_HUD_healthbar),or,og,ob);
|
||||
SPR_Set(gHUD.GetSprite(m_HUD_healthbar),ohr,ohg,ohb);
|
||||
SPR_DrawAdditive(0,x,y,prc);
|
||||
|
||||
SPR_DisableScissor();
|
||||
|
Loading…
Reference in New Issue
Block a user