[nq] Pass correct time to Light_DecayLights

The old R_DecayLights used r_data->realtime, which came from cl.time,
not realtime like I thought, thus causing dynamic lights to not decay
properly during a timedemo as realtime in the client is just that:
realtime.
This commit is contained in:
Bill Currie 2023-08-05 17:19:11 +09:00
parent f436806006
commit 1cc65179b5

View file

@ -660,7 +660,7 @@ CL_Frame (void)
if (l)
asl = l->ambient_sound_level;
S_Update (cl.viewstate.camera_transform, asl);
Light_DecayLights (cl_world.scene->lights, host_frametime, realtime);
Light_DecayLights (cl_world.scene->lights, host_frametime, cl.time);
} else
S_Update (nulltransform, 0);