engine: client: move ref state updating into standalone function

This commit is contained in:
Alibek Omarov
2020-09-14 14:32:46 +03:00
parent e4a71afe63
commit 80a5c53cb2
3 changed files with 9 additions and 9 deletions

View File

@@ -1579,10 +1579,7 @@ void CL_RegisterResources( sizebuf_t *msg )
CL_ClearWorld ();
// update the ref state.
refState.time = cl.time;
refState.oldtime = cl.oldtime;
refState.realtime = host.realtime;
refState.frametime = host.frametime;
R_UpdateRefState ();
// tell rendering system we have a new set of models.
ref.dllFuncs.R_NewMap ();
@@ -3175,10 +3172,7 @@ void CL_LegacyPrecache_f( void )
clgame.entities->model = cl.worldmodel;
// update the ref state.
refState.time = cl.time;
refState.oldtime = cl.oldtime;
refState.realtime = host.realtime;
refState.frametime = host.frametime;
R_UpdateRefState ();
// tell rendering system we have a new set of models.
ref.dllFuncs.R_NewMap ();