From 6c16de55c04c8fdc91b79878679409f72334b4d2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 28 Dec 2023 22:19:37 +0300 Subject: [PATCH] ref: gl: remove GetMoveVars() call --- ref/gl/gl_alias.c | 2 +- ref/gl/gl_studio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;