From 27cc6105adce4ef04600f1dbd7d6c5de1d6c9e45 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 25 May 2011 00:04:20 +0200 Subject: [PATCH] hud_panel_weapons_onlyowned: if player doesn't have any weapon completely hide the weapons panel --- qcsrc/client/hud.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index bdb3d4aac..51043b5f5 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -654,6 +654,8 @@ void HUD_Weapons(void) if(weapons_st & weaponorder[i].weapons) ++weapon_count; } + if (weapon_count == 0) + return; // reduce size of the panel if (panel_size_y > panel_size_x) { -- 2.39.2