From 0c2beaafa874896aeb51a6e41613102b87301ea1 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 16 Oct 2005 03:59:45 +0000 Subject: [PATCH] Push the skybox back if the user set the gl_maxdist to infinate. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1488 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_warp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/gl/gl_warp.c b/engine/gl/gl_warp.c index 62bd938b..12aa3be4 100644 --- a/engine/gl/gl_warp.c +++ b/engine/gl/gl_warp.c @@ -810,8 +810,9 @@ void MakeSkyVec (float s, float t, int axis) vec3_t v, b; int j, k; float skydist = gl_skyboxdist.value; + extern cvar_t gl_maxdist; - if (r_shadows.value) //because r_shadows comes with an infinate depth perspective. + if (r_shadows.value || !gl_maxdist.value) //because r_shadows comes with an infinate depth perspective. skydist*=20; //so we can put the distance at whatever distance needed. b[0] = s*skydist;