mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 12:22:42 +00:00
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:
parent
4ca2ea89f9
commit
defad00c26
1 changed files with 10 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue