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
This commit is contained in:
Spoike 2005-10-16 03:59:45 +00:00
parent 92cbddb20c
commit 0c2beaafa8
1 changed files with 2 additions and 1 deletions

View File

@ -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;