From 0d17147afebf19a5674afcea8af2b5258af64f7b Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 15 Aug 2016 22:21:50 +0200 Subject: [PATCH] Remove useless checks --- qcsrc/client/hud/panel/score.qc | 6 ++++-- qcsrc/client/hud/panel/scoreboard.qc | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcsrc/client/hud/panel/score.qc b/qcsrc/client/hud/panel/score.qc index 66a834ea7..cd0d6fa32 100644 --- a/qcsrc/client/hud/panel/score.qc +++ b/qcsrc/client/hud/panel/score.qc @@ -80,8 +80,9 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me) for(tm = teams.sort_next; tm; tm = tm.sort_next) { if(tm.team == NUM_SPECTATOR) continue; - if(!tm.team && teamplay) + if(!tm.team) continue; + if (tm.team == myteam) drawfill(pos + eX * score_size * i, eX * score_size + eY * fontsize.y, '1 1 1', highlight_alpha * panel_fg_alpha, DRAWFLAG_NORMAL); drawstring_aspect(pos + eX * score_size * i, ftos(tm.(teamscores(ts_primary))), eX * score_size + eY * fontsize.y, Team_ColorRGB(tm.team) * 0.8, panel_fg_alpha, DRAWFLAG_NORMAL); @@ -281,8 +282,9 @@ void HUD_Score() for(tm = teams.sort_next; tm; tm = tm.sort_next) { if(tm.team == NUM_SPECTATOR) continue; - if(!tm.team && teamplay) + if(!tm.team) continue; + score = tm.(teamscores(ts_primary)); if(autocvar__hud_configure) score = 123; diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 9a3c5b61a..7b2675f69 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1370,7 +1370,7 @@ void Scoreboard_Draw() { if(tm.team == NUM_SPECTATOR) continue; - if(!tm.team && teamplay) + if(!tm.team) continue; draw_beginBoldFont(); @@ -1400,8 +1400,6 @@ void Scoreboard_Draw() { if(tm.team == NUM_SPECTATOR) continue; - if(!tm.team && teamplay) - continue; pos = Scoreboard_MakeTable(pos, tm, panel_bg_color, bg_size); } -- 2.39.2