]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/View.qc
Fix issues with FL2VEC
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / View.qc
index 2e539c32a29411cf6852444494891bb42707dee5..89b84e370dc45df100c70fb83f1878174fa25e05 100644 (file)
@@ -566,7 +566,6 @@ void CSQC_UpdateView(float w, float h)
        if(autocvar_cl_orthoview)
        {
                #define ORTHO_ACCURACY 512 // x^2 resolution accuracy for evaluating fov scaling and distance
-               #define FL2VEC(x,y,z) (('1 0 0' * x) + ('0 1 0' * y) + ('0 0 1' * z))
 
                ov_worldmin = mi_picmin;
                ov_worldmax = mi_picmax;
@@ -599,6 +598,8 @@ void CSQC_UpdateView(float w, float h)
                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");
 
                setproperty(VF_ORIGIN, ov_org);