From: Samual Lenks Date: Sat, 4 Jan 2014 01:23:24 +0000 (-0500) Subject: use cvar_settemp for orthoview settings X-Git-Tag: xonotic-v0.8.0~243^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=595d0828ef7658a8a4801a48b59752912b535da9;p=xonotic%2Fxonotic-data.pk3dir.git use cvar_settemp for orthoview settings --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index edb5f9b1b..e9e19dd49 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -595,12 +595,12 @@ void CSQC_UpdateView(float w, float h) if((dist = vlen(vec3(ov_worldmax_x, ov_worldmin_y, ov_worldmax_z) - ov_org)) > ov_furthest) { ov_furthest = dist; } if((dist = vlen(vec3(ov_worldmax_x, ov_worldmax_y, ov_worldmax_z) - ov_org)) > ov_furthest) { ov_furthest = dist; } - cvar_set("r_nearclip", ftos(ov_nearest)); - cvar_set("r_farclip_base", ftos(ov_furthest)); - cvar_set("r_farclip_world", "0"); - cvar_set("r_novis", "1"); - cvar_set("r_useportalculling", "0"); - cvar_set("r_useinfinitefarclip", "0"); + cvar_settemp("r_nearclip", ftos(ov_nearest)); + cvar_settemp("r_farclip_base", ftos(ov_furthest)); + cvar_settemp("r_farclip_world", "0"); + cvar_settemp("r_novis", "1"); + cvar_settemp("r_useportalculling", "0"); + cvar_settemp("r_useinfinitefarclip", "0"); setproperty(VF_ORIGIN, ov_org); setproperty(VF_ANGLES, '90 0 0');