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:
parent
fc6d1f48e8
commit
abc4fad46e
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue