mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Bound r_maxdlights properly.
QF's implementation doesn't support more than 32 dlights (32 bit int).
This commit is contained in:
parent
eefefb79b0
commit
e58cd75660
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ R_FindNearLights (const vec3_t pos, int count, dlight_t **lights)
|
|||
void
|
||||
R_MaxDlightsCheck (cvar_t *var)
|
||||
{
|
||||
r_maxdlights = max(var->int_val, 0);
|
||||
r_maxdlights = bound (0, var->int_val, 32);
|
||||
|
||||
if (r_dlights)
|
||||
free (r_dlights);
|
||||
|
|
Loading…
Reference in a new issue