engine: server: replace same struct type memcpys by assignments
This commit is contained in:
parent
274f9d5846
commit
18ef4922de
2 changed files with 2 additions and 2 deletions
|
@ -5198,7 +5198,7 @@ qboolean SV_LoadProgs( const char *name )
|
|||
gEngfuncs.pfnPEntityOfEntIndex = pfnPEntityOfEntIndexBroken;
|
||||
|
||||
// make local copy of engfuncs to prevent overwrite it with bots.dll
|
||||
memcpy( &gpEngfuncs, &gEngfuncs, sizeof( gpEngfuncs ));
|
||||
gpEngfuncs = gEngfuncs;
|
||||
|
||||
GetEntityAPI = (APIFUNCTION)COM_GetProcAddress( svgame.hInstance, "GetEntityAPI" );
|
||||
GetEntityAPI2 = (APIFUNCTION2)COM_GetProcAddress( svgame.hInstance, "GetEntityAPI2" );
|
||||
|
|
|
@ -236,7 +236,7 @@ void SV_UpdateMovevars( qboolean initialize )
|
|||
if( initialize ) return; // too early
|
||||
|
||||
if( MSG_WriteDeltaMovevars( &sv.reliable_datagram, &svgame.oldmovevars, &svgame.movevars ))
|
||||
memcpy( &svgame.oldmovevars, &svgame.movevars, sizeof( movevars_t )); // oldstate changed
|
||||
svgame.oldmovevars = svgame.movevars; // oldstate changed
|
||||
|
||||
host.movevars_changed = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue