mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-13 08:38:59 +00:00
engine: client: avoid unneeded comparisons in CL_UpdateFlashlight
This commit is contained in:
parent
962f88d31b
commit
e95139af94
@ -2679,9 +2679,7 @@ void CL_UpdateFlashlight( cl_entity_t *ent )
|
|||||||
falloff *= falloff;
|
falloff *= falloff;
|
||||||
|
|
||||||
// apply brigthness to dlight
|
// apply brigthness to dlight
|
||||||
dl->color.r = bound( 0, falloff * 255, 255 );
|
dl->color.r = dl->color.g = dl->color.b = bound( 0, falloff * 255, 255 );
|
||||||
dl->color.g = bound( 0, falloff * 255, 255 );
|
|
||||||
dl->color.b = bound( 0, falloff * 255, 255 );
|
|
||||||
dl->die = cl.time + 0.01f; // die on next frame
|
dl->die = cl.time + 0.01f; // die on next frame
|
||||||
dl->radius = 80;
|
dl->radius = 80;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user