mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-16 07:21:28 +00:00
dca4a42dd6
There are several places where a temporary change of light mode is needed, all these made this change in the global level struct. Now the change is only local to the active draw info.
21 lines
320 B
C
21 lines
320 B
C
#pragma once
|
|
|
|
#include "c_cvars.h"
|
|
#include "v_palette.h"
|
|
#include "templates.h"
|
|
#include "r_utility.h"
|
|
|
|
struct Colormap;
|
|
|
|
inline int hw_ClampLight(int lightlevel)
|
|
{
|
|
return clamp(lightlevel, 0, 255);
|
|
}
|
|
|
|
EXTERN_CVAR(Int, gl_weaponlight);
|
|
|
|
inline int getExtraLight()
|
|
{
|
|
return r_viewpoint.extralight * gl_weaponlight;
|
|
}
|
|
|