engine: minor refactoring
This commit is contained in:
parent
232a8c1148
commit
c5a291d9c7
3 changed files with 2 additions and 4 deletions
|
@ -82,7 +82,7 @@ static void CL_ParseNewMovevars( sizebuf_t *msg )
|
||||||
if( Q_strcmp( clgame.oldmovevars.skyName, clgame.movevars.skyName ) && cl.video_prepped )
|
if( Q_strcmp( clgame.oldmovevars.skyName, clgame.movevars.skyName ) && cl.video_prepped )
|
||||||
R_SetupSky( clgame.movevars.skyName );
|
R_SetupSky( clgame.movevars.skyName );
|
||||||
|
|
||||||
memcpy( &clgame.oldmovevars, &clgame.movevars, sizeof( movevars_t ));
|
clgame.oldmovevars = clgame.movevars;
|
||||||
clgame.entities->curstate.scale = clgame.movevars.waveHeight;
|
clgame.entities->curstate.scale = clgame.movevars.waveHeight;
|
||||||
|
|
||||||
// keep features an actual!
|
// keep features an actual!
|
||||||
|
|
|
@ -1321,7 +1321,6 @@ static qboolean Delta_WriteField( sizebuf_t *msg, delta_t *pField, const void *f
|
||||||
Delta_WriteField_( msg, pField, from, to, timebase );
|
Delta_WriteField_( msg, pField, from, to, timebase );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1342,9 +1342,8 @@ otherwise see code SV_UpdateMovevars()
|
||||||
*/
|
*/
|
||||||
void SV_FullUpdateMovevars( sv_client_t *cl, sizebuf_t *msg )
|
void SV_FullUpdateMovevars( sv_client_t *cl, sizebuf_t *msg )
|
||||||
{
|
{
|
||||||
movevars_t nullmovevars;
|
const movevars_t nullmovevars = { 0 };
|
||||||
|
|
||||||
memset( &nullmovevars, 0, sizeof( nullmovevars ));
|
|
||||||
MSG_WriteDeltaMovevars( msg, &nullmovevars, &svgame.movevars );
|
MSG_WriteDeltaMovevars( msg, &nullmovevars, &svgame.movevars );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue