From: mand1nga Date: Mon, 11 Apr 2011 12:35:49 +0000 (-0300) Subject: Indentation fascist reporting for duty\! X-Git-Tag: xonotic-v0.5.0~307^2^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9f5a8e06b344defe6bfd1716c662c4c3aa59b371;p=xonotic%2Fxonotic-data.pk3dir.git Indentation fascist reporting for duty\! --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 37f10b884..ce8b608fc 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -89,7 +89,7 @@ void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector the vector HUD_Get_Num_Color (float x, float maxvalue) { - float blinkingamt; + float blinkingamt; vector color; if(x >= maxvalue) { color_x = sin(2*M_PI*time); @@ -122,13 +122,13 @@ vector HUD_Get_Num_Color (float x, float maxvalue) color_z = 0; } - blinkingamt = (1 - x/maxvalue/0.25); - if(blinkingamt > 0) - { - color_x = color_x - color_x * blinkingamt * sin(2*M_PI*time); - color_y = color_y - color_y * blinkingamt * sin(2*M_PI*time); - color_z = color_z - color_z * blinkingamt * sin(2*M_PI*time); - } + blinkingamt = (1 - x/maxvalue/0.25); + if(blinkingamt > 0) + { + color_x = color_x - color_x * blinkingamt * sin(2*M_PI*time); + color_y = color_y - color_y * blinkingamt * sin(2*M_PI*time); + color_z = color_z - color_z * blinkingamt * sin(2*M_PI*time); + } return color; }