diff --git a/ref/gl/gl_alias.c b/ref/gl/gl_alias.c index e203468f..9bbb204b 100644 --- a/ref/gl/gl_alias.c +++ b/ref/gl/gl_alias.c @@ -765,7 +765,7 @@ similar to R_StudioDynamicLight */ void R_AliasDynamicLight( cl_entity_t *ent, alight_t *plight ) { - movevars_t *mv = gEngfuncs.pfnGetMoveVars(); + movevars_t *mv = tr.movevars; vec3_t lightDir, vecSrc, vecEnd; vec3_t origin, dist, finalLight; float add, radius, total; diff --git a/ref/gl/gl_studio.c b/ref/gl/gl_studio.c index ee7492c9..fee12322 100644 --- a/ref/gl/gl_studio.c +++ b/ref/gl/gl_studio.c @@ -1324,7 +1324,7 @@ R_StudioDynamicLight */ void R_StudioDynamicLight( cl_entity_t *ent, alight_t *plight ) { - movevars_t *mv = gEngfuncs.pfnGetMoveVars(); + movevars_t *mv = tr.movevars; vec3_t lightDir, vecSrc, vecEnd; vec3_t origin, dist, finalLight; float add, radius, total;