From: Debugger Date: Sun, 7 Apr 2013 15:43:45 +0000 (+0200) Subject: removed unnecessary 'num1' declaration X-Git-Tag: xonotic-v0.8.0~347^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25c8b89b42ad5d90114186caa6a2375ff7636585;p=xonotic%2Fxonotic-data.pk3dir.git removed unnecessary 'num1' declaration --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index e6e86c887..63b5deeea 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -511,7 +511,7 @@ float hud_field_icon1_alpha; float hud_field_icon2_alpha; string HUD_GetField(entity pl, float field) { - float tmp, num, denom, f, num1; + float tmp, num, denom, f; string str; hud_field_rgb = '1 1 1'; hud_field_icon0 = ""; @@ -588,18 +588,18 @@ string HUD_GetField(entity pl, float field) return str; case SP_NET: - num1 = pl.(scores[SP_KILLS - SP_SUICIDES +2]); + num = pl.(scores[SP_KILLS - SP_SUICIDES +2]); denom = pl.(scores[SP_DEATHS]); - if((num1 - denom) > 0) { + if((num - denom) > 0) { hud_field_rgb = '0 1 0'; - str = sprintf("%d", (num1 - denom)); - } else if((num1 - denom) == 0) { + str = sprintf("%d", (num - denom)); + } else if((num - denom) == 0) { hud_field_rgb = '1 1 1'; - str = sprintf("%d", (num1 - denom)); + str = sprintf("%d", (num - denom)); } else { hud_field_rgb = '1 0 0'; - str = sprintf("%d", (num1 - denom)); + str = sprintf("%d", (num - denom)); } return str;