From 44e017a410428ea1492f2188745f8136a102227e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 28 Dec 2023 22:19:41 +0300 Subject: [PATCH] ref: soft: convert to usage of ref_host_t to get real engine time --- ref/soft/r_studio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ref/soft/r_studio.c b/ref/soft/r_studio.c index 8683fd54..04bf46f3 100644 --- a/ref/soft/r_studio.c +++ b/ref/soft/r_studio.c @@ -169,8 +169,8 @@ static void R_StudioSetupTimings( void ) else { // menu stuff - g_studio.time = gpGlobals->realtime; - g_studio.frametime = gpGlobals->frametime; + g_studio.time = gp_host->realtime; + g_studio.frametime = gp_host->frametime; } } @@ -2532,7 +2532,7 @@ static void R_StudioClientEvents( void ) return; end = R_StudioEstimateFrame( e, pseqdesc, g_studio.time ); - start = end - e->curstate.framerate * gpGlobals->frametime * pseqdesc->fps; + start = end - e->curstate.framerate * gp_host->frametime * pseqdesc->fps; pevent = (mstudioevent_t *)((byte *)m_pStudioHeader + pseqdesc->eventindex); if( e->latched.sequencetime == e->curstate.animtime )