]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix fog_alpha checking bug that makes sky disappear in the wrong situation
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 22 Dec 2007 15:17:25 +0000 (15:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 22 Dec 2007 15:17:25 +0000 (15:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7839 d7cf8633-e32d-0410-b094-e92efae38249

r_sky.c

diff --git a/r_sky.c b/r_sky.c
index 449adb88d66b11631c997b2f9442c1a07a89d261..d7d134edeb5ef64666c12ff2e9aa4d9dfbd86c11 100644 (file)
--- a/r_sky.c
+++ b/r_sky.c
@@ -56,7 +56,7 @@ void R_SkyStartFrame(void)
        skyrendersphere = false;
        skyrenderbox = false;
        skyrendermasked = false;
-       if (r_sky.integer && !(r_refdef.fogenabled && r_refdef.fog_alpha < 1))
+       if (r_sky.integer && !(r_refdef.fogenabled && r_refdef.fog_alpha >= 1))
        {
                if (skyboxside[0] || skyboxside[1] || skyboxside[2] || skyboxside[3] || skyboxside[4] || skyboxside[5])
                        skyrenderbox = true;