Half-Life: Only draw HUD when ITEM_SUIT is present.

This commit is contained in:
Marco Cawthorne 2019-09-01 10:07:58 +02:00
parent 106604661b
commit 7541db9f63

View file

@ -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();