mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-03-10 04:31:16 +00:00
ref: gl: convert to usage of ref_host_t to get real engine time
This commit is contained in:
parent
4d802d8901
commit
afb0540aa3
@ -1337,7 +1337,7 @@ static void R_AliasSetupTimings( void )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// menu stuff
|
// menu stuff
|
||||||
g_alias.time = gpGlobals->realtime;
|
g_alias.time = gp_host->realtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_fDoRemap = false;
|
m_fDoRemap = false;
|
||||||
|
@ -180,8 +180,8 @@ static void R_StudioSetupTimings( void )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// menu stuff
|
// menu stuff
|
||||||
g_studio.time = gpGlobals->realtime;
|
g_studio.time = gp_host->realtime;
|
||||||
g_studio.frametime = gpGlobals->frametime;
|
g_studio.frametime = gp_host->frametime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2772,7 +2772,7 @@ static void R_StudioClientEvents( void )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
end = R_StudioEstimateFrame( e, pseqdesc, g_studio.time );
|
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);
|
pevent = (mstudioevent_t *)((byte *)m_pStudioHeader + pseqdesc->eventindex);
|
||||||
|
|
||||||
if( e->latched.sequencetime == e->curstate.animtime )
|
if( e->latched.sequencetime == e->curstate.animtime )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user