Half-Life: Only draw HUD when ITEM_SUIT is present.
This commit is contained in:
parent
106604661b
commit
7541db9f63
1 changed files with 6 additions and 0 deletions
|
@ -287,6 +287,12 @@ void HUD_DrawFlashlight(void)
|
|||
|
||||
void HUD_Draw(void)
|
||||
{
|
||||
player pl = (player)pSeat->ePlayer;
|
||||
|
||||
if (!(pl.g_items & ITEM_SUIT)) {
|
||||
return;
|
||||
}
|
||||
|
||||
g_hud_color = autocvar_con_color * (1 / 255);
|
||||
|
||||
HUD_DrawHealth();
|
||||
|
|
Loading…
Reference in a new issue