[renderer] Don't try to animate lightstyles that aren't there

Prevents a segfault when running the renderer via qwaq-x11.
This commit is contained in:
Bill Currie 2022-04-07 22:30:19 +09:00
parent f6541dbe3f
commit 6b81a4b882

View file

@ -126,6 +126,10 @@ R_AnimateLight (void)
{
int i, j, k;
if (!r_data->lightstyle) {
return;
}
// light animations
// 'm' is normal light, 'a' is no light, 'z' is double bright
i = (int) (r_data->realtime * 10);