From 2ea784e3f1aee4bf7bc7289db158b289d9746b50 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 22 Dec 2007 15:17:25 +0000 Subject: [PATCH] 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 --- r_sky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2