i think terencehill meant that to be a continue instead of break, also why this killn...
authorFruitieX <fruitiex@gmail.com>
Fri, 12 Nov 2010 06:45:09 +0000 (08:45 +0200)
committerFruitieX <fruitiex@gmail.com>
Fri, 12 Nov 2010 06:45:09 +0000 (08:45 +0200)
qcsrc/client/hud.qc

index 22fd924..dae75c8 100644 (file)
@@ -2622,7 +2622,7 @@ void HUD_KillNotify_Push(string attacker, string victim, float actiontype, float
        --kn_index;
        if (kn_index == -1)
                kn_index = KN_MAX_ENTRIES-1;
        --kn_index;
        if (kn_index == -1)
                kn_index = KN_MAX_ENTRIES-1;
-       killnotify_times[kn_index] = time; // -1 indicates the message is deleted
+       killnotify_times[kn_index] = time;
        killnotify_deathtype[kn_index] = wpn;
        killnotify_actiontype[kn_index] = actiontype;
        if(killnotify_attackers[kn_index])
        killnotify_deathtype[kn_index] = wpn;
        killnotify_actiontype[kn_index] = actiontype;
        if(killnotify_attackers[kn_index])
@@ -3148,9 +3148,6 @@ void HUD_Notify (void)
                if (j == KN_MAX_ENTRIES)
                        j = 0;
 
                if (j == KN_MAX_ENTRIES)
                        j = 0;
 
-               if (killnotify_times[j] == -1)
-                       break;
-
                if(killnotify_times[j] + when > time)
                        a = 1;
                else if(fadetime)
                if(killnotify_times[j] + when > time)
                        a = 1;
                else if(fadetime)
@@ -3158,14 +3155,12 @@ void HUD_Notify (void)
                        a = bound(0, (killnotify_times[j] + when + fadetime - time) / fadetime, 1);
                        if(!a)
                        {
                        a = bound(0, (killnotify_times[j] + when + fadetime - time) / fadetime, 1);
                        if(!a)
                        {
-                               killnotify_times[j] = -1;
-                               break;
+                               continue;
                        }
                }
                else
                {
                        }
                }
                else
                {
-                       killnotify_times[j] = -1;
-                       break;
+                       continue;
                }
 
                s = "";
                }
 
                s = "";