2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

engine: minor refactoring

This commit is contained in:
Alibek Omarov 2024-10-14 05:17:21 +03:00
parent 232a8c1148
commit c5a291d9c7
3 changed files with 2 additions and 4 deletions

View File

@ -82,7 +82,7 @@ static void CL_ParseNewMovevars( sizebuf_t *msg )
if( Q_strcmp( clgame.oldmovevars.skyName, clgame.movevars.skyName ) && cl.video_prepped )
R_SetupSky( clgame.movevars.skyName );
memcpy( &clgame.oldmovevars, &clgame.movevars, sizeof( movevars_t ));
clgame.oldmovevars = clgame.movevars;
clgame.entities->curstate.scale = clgame.movevars.waveHeight;
// keep features an actual!

View File

@ -1321,7 +1321,6 @@ static qboolean Delta_WriteField( sizebuf_t *msg, delta_t *pField, const void *f
Delta_WriteField_( msg, pField, from, to, timebase );
return true;
return true;
}
/*

View File

@ -1342,9 +1342,8 @@ otherwise see code SV_UpdateMovevars()
*/
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 );
}