]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Now draw the image. All we need next is a good icon
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 11:56:13 +0000 (14:56 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 5 Sep 2010 11:56:13 +0000 (14:56 +0300)
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