Browse Source

Setup renderer time

pull/2/head
mittorn 6 years ago
parent
commit
00ce909fc8
  1. 3
      engine/client/cl_main.c
  2. 3
      engine/client/cl_parse.c

3
engine/client/cl_main.c

@ -285,6 +285,7 @@ static float CL_LerpPoint( void ) @@ -285,6 +285,7 @@ static float CL_LerpPoint( void )
frac = ( cl.time - cl.mtime[1] ) / f;
}
#endif
refState.time = cl.time;
return frac;
}
@ -2826,6 +2827,8 @@ void CL_AdjustClock( void ) @@ -2826,6 +2827,8 @@ void CL_AdjustClock( void )
if( cl.oldtime > cl.time )
cl.oldtime = cl.time;
}
refState.oldtime = cl.oldtime;
refState.time = cl.time;
}
/*

3
engine/client/cl_parse.c

@ -208,6 +208,9 @@ void CL_ParseServerTime( sizebuf_t *msg ) @@ -208,6 +208,9 @@ void CL_ParseServerTime( sizebuf_t *msg )
if( cl.oldtime > cl.time )
cl.oldtime = cl.time;
refState.oldtime = cl.oldtime;
refState.time = cl.time;
}
/*

Loading…
Cancel
Save