r_fullbrightSkins added.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@733 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-05 08:10:52 +00:00
parent 4ca2ea89f9
commit defad00c26

View file

@ -707,16 +707,23 @@ void SWR_DrawEntitiesOnList (void)
// trivial accept status
if (R_AliasCheckBBox ())
{
extern cvar_t r_fullbrightSkins;
float fb = r_fullbrightSkins.value;
if (fb > cls.allow_fbskins)
fb = cls.allow_fbskins;
if (fb < 0)
fb = 0;
j = SWR_LightPoint (currententity->origin);
lighting.ambientlight = j;
lighting.shadelight = j;
lighting.ambientlight = j+fb * 120;
lighting.shadelight = j+fb * 120;
lighting.plightvec = lightvec;
for (lnum=0 ; lnum<MAX_DLIGHTS ; lnum++)
{
if (cl_dlights[lnum].die >= cl.time)
if (cl_dlights[lnum].radius)
{
VectorSubtract (currententity->origin,
cl_dlights[lnum].origin,