]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/sbar.qc
Now draw the image. All we need next is a good icon
[voretournament/voretournament.git] / data / qcsrc / client / sbar.qc
index 03e5c04c43b4c22ab5fe11be439fa5b2837e545a..527276fc3ace448680868c3ad271b1867fa30bbf 100644 (file)
@@ -3052,8 +3052,8 @@ void Sbar_Draw (void)
                // weapon icon\r
                entity e;\r
                e = get_weaponinfo(activeweapon);\r
-               //if (e && e.netname != "")\r
-                       dprint(strcat("XX_", e.netname, "_YY\n"));\r
+               if (e && e.netname != "" && e.netname != "N/A")\r
+                       drawpic(bottom - '96 96 0', strcat("gfx/hud/bg_status_activeweapon_", e.netname), '192 96 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
 \r
                // draw scores and timer\r
                Sbar_Score();\r