From: TimePath Date: Thu, 27 Aug 2015 11:46:13 +0000 (+1000) Subject: Fix long strings exceeding the scope of the weapon priority list X-Git-Tag: xonotic-v0.8.2~2011 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f3207107de6fdd57ead590b02dcc8f832d1b452e;p=xonotic%2Fxonotic-data.pk3dir.git Fix long strings exceeding the scope of the weapon priority list Closes #1429 --- diff --git a/qcsrc/menu/xonotic/dialog_settings_game_weapons.qc b/qcsrc/menu/xonotic/dialog_settings_game_weapons.qc index c3dbac338..dd8c6fd50 100644 --- a/qcsrc/menu/xonotic/dialog_settings_game_weapons.qc +++ b/qcsrc/menu/xonotic/dialog_settings_game_weapons.qc @@ -34,7 +34,7 @@ void XonoticGameWeaponsSettingsTab_fill(entity me) me.TR(me); me.TDempty(me, 0.25); - me.TD(me, 1, 2.5, e = makeXonoticHeaderLabel(_("Weapon Priority List"))); + me.TD(me, 1, 2.5, e = makeXonoticHeaderLabel(_("Weapon Priority List (* = mutator weapon)"))); me.TR(me); me.TDempty(me, 0.25); me.TD(me, 10, 2.5, e = me.weaponsList = makeXonoticWeaponsList()); diff --git a/qcsrc/menu/xonotic/weaponslist.qc b/qcsrc/menu/xonotic/weaponslist.qc index 7834153dc..1f2a4e19e 100644 --- a/qcsrc/menu/xonotic/weaponslist.qc +++ b/qcsrc/menu/xonotic/weaponslist.qc @@ -105,7 +105,7 @@ void XonoticWeaponsList_drawListBoxItem(entity me, int i, vector absSize, bool i e = get_weaponinfo(stof(argv(i))); string msg = e.message; 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);