mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 14:42:05 +08:00
engine: server: replace same struct type memcpys by assignments
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user