mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Return quickly from R_AdjustLightLevel if possible
This commit is contained in:
parent
aed9fe996c
commit
154cc77186
1 changed files with 5 additions and 0 deletions
|
|
@ -49,6 +49,11 @@ void R_CheckDebugHighlight(debugrender_highlight_t k)
|
|||
|
||||
INT32 R_AdjustLightLevel(INT32 light)
|
||||
{
|
||||
if (!debugrender_highlight && cv_debugrender_contrast.value == 0)
|
||||
{
|
||||
return light;
|
||||
}
|
||||
|
||||
constexpr fixed_t kRange = (LIGHTLEVELS - 1) * FRACUNIT;
|
||||
const fixed_t adjust = FixedMul(cv_debugrender_contrast.value, kRange);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue