From: havoc Date: Sat, 22 Dec 2007 15:17:25 +0000 (+0000) Subject: fix fog_alpha checking bug that makes sky disappear in the wrong situation X-Git-Tag: xonotic-v0.1.0preview~2652 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2ea784e3f1aee4bf7bc7289db158b289d9746b50;p=xonotic%2Fdarkplaces.git fix fog_alpha checking bug that makes sky disappear in the wrong situation git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7839 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_sky.c b/r_sky.c index 449adb88..d7d134ed 100644 --- 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;