1
0
Fork 0
forked from fte/fteqw

Fix black trees on keep2. Not quite the true fix, but I'd rather not break quake instead.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3591 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2010-08-18 21:55:24 +00:00
parent fc6d1f48e8
commit abc4fad46e

View file

@ -748,7 +748,17 @@ static qboolean R_CalcModelLighting(entity_t *e, model_t *clmodel, unsigned int
}
}
else
cl.worldmodel->funcs.LightPointValues(cl.worldmodel, e->origin, shadelight, ambientlight, lightdir);
{
vec3_t center;
#if 0 /*hexen2*/
VectorAvg(clmodel->mins, clmodel->maxs, center);
VectorAdd(e->origin, center, center);
#else
VectorCopy(e->origin, center);
center[2] += 8;
#endif
cl.worldmodel->funcs.LightPointValues(cl.worldmodel, center, shadelight, ambientlight, lightdir);
}
}
else
{