]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/weaponslist.qc
Weapon priority list: fix invisible names
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / weaponslist.qc
index 7834153dced56a548c6c21ff7d9b8f44265fab23..c1189dd9ba5c702214c50c0ecea30e4613f713b7 100644 (file)
@@ -88,7 +88,7 @@ string XonoticWeaponsList_toString(entity me)
        for(i = 0; i < n; ++i)
        {
                e = get_weaponinfo(stof(argv(i)));
-               s = strcat(s, e.message, ", ");
+               s = strcat(s, e.m_name, ", ");
        }
        return substring(s, 0, strlen(s) - 2);
 }
@@ -103,9 +103,9 @@ void XonoticWeaponsList_drawListBoxItem(entity me, int i, vector absSize, bool i
                draw_Fill('0 0 0', '1 1 0', SKINCOLOR_LISTBOX_FOCUSED, me.focusedItemAlpha);
        }
        e = get_weaponinfo(stof(argv(i)));
-       string msg = e.message;
+       string msg = e.m_name;
        if(e.spawnflags & WEP_FLAG_MUTATORBLOCKED)
-               msg = sprintf(_("%s (mutator weapon)"), msg);
+               msg = strcat(msg, "*");
 
        vector save_fontscale = draw_fontscale;
        float f = draw_CondensedFontFactor(msg, false, me.realFontSize, 1);