]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into samual/weapons
authorRudolf Polzer <divverent@xonotic.org>
Thu, 16 Oct 2014 09:50:07 +0000 (11:50 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 16 Oct 2014 09:50:07 +0000 (11:50 +0200)
Conflicts:
qcsrc/client/hud.qc

1  2 
qcsrc/client/autocvars.qh
qcsrc/client/hud.qc

Simple merge
index a6d06d783bf745474c51d9e9c28e116e27d87a13,9faf594451175f0bc2e97deb416ec6800d52488a..811b3649c1fa0f440c5a4b40db9c2b28762a0dc9
@@@ -1636,15 -1702,10 +1662,10 @@@ void HUD_Notify(void
        {
                if(autocvar__hud_configure)
                {
-                       if (step == +1)
-                               a = i;
-                       else // inverse order
-                               a = entries - 1 - i;
-                       attacker = textShortenToWidth(sprintf(_("Player %d"), a+1), 0.48 * mySize_x - height, fontsize, stringwidth_colors);
-                       victim = textShortenToWidth(sprintf(_("Player %d"), a+2), 0.48 * mySize_x - height, fontsize, stringwidth_colors);
-                       icon = get_weaponinfo(WEP_FIRST + mod(floor(a*2.4), WEP_LAST)).model2;
-                       a = bound(0, (when - a) / 4, 1);
-                       goto hud_config_notifyprint;
+                       attacker = sprintf(_("Player %d"), count + 1);
+                       victim = sprintf(_("Player %d"), count + 2);
 -                      icon = strcat("weapon", get_weaponinfo(min(WEP_FIRST + count * 2, WEP_LAST)).netname);
++                      icon = get_weaponinfo(min(WEP_FIRST + count * 2, WEP_LAST)).model2;
+                       alpha = bound(0, 1.2 - count / entry_count, 1);
                }
                else
                {