From ce62bb8639a0500e0e113b9f4373dd95283f414d Mon Sep 17 00:00:00 2001 From: fruitiex Date: Tue, 29 Sep 2009 12:34:47 +0000 Subject: [PATCH] fix weapon icons overlapping the hud background git-svn-id: svn://svn.icculus.org/nexuiz/trunk@7986 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/client/sbar.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 30cef8b50..7e32d06ab 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -76,12 +76,12 @@ void Sbar_DrawWeapon(float nr, float fade, float active, float wc) color_x = color_y = color_z = value; // width = 300, height = 100 - const float w_width = 25, w_height = 12, w_space = 2, font_size = 8; + const float w_width = 24, w_height = 12, w_space = 2, font_size = 8; sp = weaponspace[idx] + 1; weaponspace[idx] = sp; - pos_x = (vid_conwidth + 10 - w_width * 9) * 0.5 + w_width * idx; + pos_x = (vid_conwidth + 6 - w_width * 9) * 0.5 + w_width * idx; pos_y = (vid_conheight - w_height * sp) - 38; // move 38 pixels up pos_z = 0; vsize_x = w_width; -- 2.39.2