From: Samual Lenks Date: Tue, 14 May 2013 22:20:51 +0000 (-0400) Subject: Cleanup X-Git-Tag: xonotic-v0.7.0~47^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a59118f55419e484b2b2bd2d1e78b5878be3cb5;p=xonotic%2Fxonotic-data.pk3dir.git Cleanup --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 1ac6fb2be..13e41a416 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -215,7 +215,7 @@ float wcross_resolution_goal_prev, wcross_resolution_goal_prev_prev; float wcross_name_changestarttime, wcross_name_changedonetime; float wcross_name_alpha_goal_prev, wcross_name_alpha_goal_prev_prev; -string wcross_ring_image_prev; +float wcross_ring_prev; entity trueaim; entity trueaim_rifle; @@ -382,8 +382,6 @@ float eventchase_current_distance; vector damage_blurpostprocess, content_blurpostprocess; -float prev_ring_alpha; // TODO REMOVE THIS - float checkfail[16]; float rainbow_last_flicker; @@ -1426,9 +1424,12 @@ void CSQC_UpdateView(float w, float h) if(autocvar_crosshair_effect_time > 0) { f = (time - wcross_name_changestarttime) / autocvar_crosshair_effect_time; - if not(f < 1) { wcross_ring_image_prev = ring_image; } + if not(f < 1) + { + wcross_ring_prev = ((ring_image) ? TRUE : FALSE); + } - if(wcross_ring_image_prev) + if(wcross_ring_prev) { if(f < 1) ring_alpha *= fabs(1 - bound(0, f, 1)); @@ -1438,12 +1439,6 @@ void CSQC_UpdateView(float w, float h) if(f < 1) ring_alpha *= bound(0, f, 1); } - - if(ring_alpha != prev_ring_alpha) - { - prev_ring_alpha = ring_alpha; - print("foobar: ", ftos(ring_alpha), ".\n"); - } } if (autocvar_crosshair_ring_inner && ring_inner_value) // lets draw a ring inside a ring so you can ring while you ring