]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use r_drawfog 0 while in orthoview
authorSamual Lenks <samual@xonotic.org>
Sun, 15 Sep 2013 17:46:02 +0000 (13:46 -0400)
committerSamual Lenks <samual@xonotic.org>
Sun, 15 Sep 2013 17:46:02 +0000 (13:46 -0400)
qcsrc/client/Main.qc
qcsrc/client/View.qc
qcsrc/client/autocvars.qh

index 8e36cc9b549a85873c0ea2ecca3c0bb4ee69eddc..f7537ad807a51a6a58df0b81a555c55b398a902b 100644 (file)
@@ -921,8 +921,10 @@ void Fog_Force()
 {
        // TODO somehow thwart prvm_globalset client ...
 
-       if(forcefog != "")
-               localcmd(strcat(notranslate_fogcmd1, forcefog, notranslate_fogcmd2));
+       if(autocvar_cl_orthoview && autocvar_cl_orthoview_nofog)
+               { localcmd("\nr_drawfog 0\n"); }
+       else if(forcefog != "")
+               { localcmd(strcat(notranslate_fogcmd1, forcefog, notranslate_fogcmd2)); }
 }
 
 void Gamemode_Init();
index 1255200c2d08943bea4243f33142dce699bef625..7a0a1011968094d6b58708c0951281b13793b11e 100644 (file)
@@ -396,7 +396,7 @@ float checkfail[16];
 
 float rainbow_last_flicker;
 vector rainbow_prev_color;
-float autocvar_cl_orthoview_distanceoverride;
+
 #define BUTTON_3 4
 #define BUTTON_4 8
 float cl_notice_run();
index c489f1ea1f62230510f7542d68be52df1fe9d2ee..dfa83cf5f20f5ddcfc28955f9faedc3b208bf53e 100644 (file)
@@ -55,6 +55,8 @@ float autocvar_cl_hidewaypoints;
 float autocvar_cl_lockview;
 float autocvar_cl_nogibs;
 var float autocvar_cl_orthoview = TRUE;
+var float autocvar_cl_orthoview_nofog = TRUE;
+float autocvar_cl_orthoview_distanceoverride;
 float autocvar_cl_particlegibs;
 float autocvar_cl_particles_oldnexbeam;
 float autocvar_cl_particles_quality;