From: terencehill Date: Mon, 15 Aug 2016 20:21:50 +0000 (+0200) Subject: Remove useless checks X-Git-Tag: xonotic-v0.8.2~710 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0d17147afebf19a5674afcea8af2b5258af64f7b;p=xonotic%2Fxonotic-data.pk3dir.git Remove useless checks --- 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); }