]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Simplify conditions
authorterencehill <piuntn@gmail.com>
Mon, 7 Nov 2016 10:39:58 +0000 (11:39 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 7 Nov 2016 10:39:58 +0000 (11:39 +0100)
qcsrc/client/hud/panel/scoreboard.qc

index 6283ed6d2de94cea95de399598622eb5c19e6618..994ff12aa59e4c6ca25a63591638d1e30397b458 100644 (file)
@@ -1121,11 +1121,11 @@ vector Scoreboard_AccuracyStats_Draw(vector pos, vector rgb, vector bg_size)
                int weapon_stats = weapon_accuracy[i - WEP_FIRST];
 
                WepSet set = it.m_wepset;
-               if (weapon_stats < 0)
+               if (weapon_stats < 0 && !((weapons_stat & set) || (weapons_inmap & set)))
                {
-                       if (!(weapons_stat & set) && !(weapons_inmap & set) && ((it.spawnflags & WEP_FLAG_HIDDEN) || (it.spawnflags & WEP_FLAG_MUTATORBLOCKED)))
-                               nHidden += 1;
-                       else if (!((weapons_stat & set) || (weapons_inmap & set)))
+                       if (((it.spawnflags & WEP_FLAG_HIDDEN) || (it.spawnflags & WEP_FLAG_MUTATORBLOCKED)))
+                               ++nHidden;
+                       else
                                ++disownedcnt;
                }
        });