From: Samual Lenks Date: Sun, 15 Sep 2013 05:13:07 +0000 (-0400) Subject: On second thought, keep the override cvar X-Git-Tag: xonotic-v0.8.0~247^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eca45576ade39497ed004f1aab86718cff4d7f33;p=xonotic%2Fxonotic-data.pk3dir.git On second thought, keep the override cvar --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 52d8cafec..6e3cc5a8d 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -396,7 +396,7 @@ float checkfail[16]; float rainbow_last_flicker; vector rainbow_prev_color; -//float autocvar_cl_orthoview_distanceoverride; +float autocvar_cl_orthoview_distanceoverride; #define BUTTON_3 4 #define BUTTON_4 8 float cl_notice_run(); @@ -567,7 +567,7 @@ void CSQC_UpdateView(float w, float h) float ov_width = (mi_picmax_x - mi_picmin_x); float ov_height = (mi_picmax_y - mi_picmin_y); float ov_distance = (512 * max(ov_width, ov_height)); - //if(autocvar_cl_orthoview_distanceoverride) { ov_distance = autocvar_cl_orthoview_distanceoverride; } + if(autocvar_cl_orthoview_distanceoverride) { ov_distance = autocvar_cl_orthoview_distanceoverride; } ov_org = ((mi_picmax + mi_picmin) * 0.5); ov_org = FL2VEC(ov_org_x, ov_org_y, (ov_org_z * ov_distance));