mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[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:
parent
f6541dbe3f
commit
6b81a4b882
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue