]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
work around fteqcc fail AGAIN
authorRudolf Polzer <divverent@xonotic.org>
Sun, 14 Aug 2011 16:11:06 +0000 (18:11 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 14 Aug 2011 16:11:06 +0000 (18:11 +0200)
qcsrc/client/View.qc

index e6dc7309832da9e182e0661d6dc0c9d4d898adb3..391e53167047c962c9b80aa60fa09fd58afbeffe 100644 (file)
@@ -132,10 +132,13 @@ vector GetCurrentFov(float fov)
        if(spectatee_status > 0 || isdemo())
        {
                if(spectatorbutton_zoom)
-                       zoomdir = 0 + !zoomdir;
-               // do not even THINK about removing this 0
-               // _I_ know what I am doing
-               // fteqcc does not
+               {
+                       if(zoomdir)
+                               zoomdir = 0;
+                       else
+                               zoomdir = 1;
+               }
+               // fteqcc failed twice here already, don't optimize this
        }
 
        if(zoomdir)