From: TimePath Date: Sat, 31 Oct 2015 09:37:48 +0000 (+1100) Subject: Weapon priority list: fix invisible names X-Git-Tag: xonotic-v0.8.2~1752 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=193f51333a9f40b0c14bca5a309394de00fa0f9b;p=xonotic%2Fxonotic-data.pk3dir.git Weapon priority list: fix invisible names --- diff --git a/qcsrc/menu/xonotic/weaponslist.qc b/qcsrc/menu/xonotic/weaponslist.qc index 1f2a4e19e..c1189dd9b 100644 --- a/qcsrc/menu/xonotic/weaponslist.qc +++ b/qcsrc/menu/xonotic/weaponslist.qc @@ -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,7 +103,7 @@ 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 = strcat(msg, "*");