From 193f51333a9f40b0c14bca5a309394de00fa0f9b Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 31 Oct 2015 20:37:48 +1100 Subject: [PATCH] Weapon priority list: fix invisible names --- qcsrc/menu/xonotic/weaponslist.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, "*"); -- 2.39.2