This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
Xash3DArchive/engine/server/sv_progs.c
2022-06-27 01:14:40 +03:00

22 lines
690 B
C

//=======================================================================
// Copyright XashXT Group 2008 ©
// sv_progs.c - server.dat interface
//=======================================================================
#include "common.h"
#include "server.h"
#include "byteorder.h"
#include "matrix_lib.h"
#include "const.h"
void SV_RestoreEdict( edict_t *ent )
{
// link it into the bsp tree
SV_LinkEdict( ent );
SV_CreatePhysBody( ent );
SV_SetPhysForce( ent ); // restore forces ...
SV_SetMassCentre( ent ); // and mass force
if( ent->v.ambient ) // restore loopsound
ent->pvServerData->s.soundindex = SV_SoundIndex( STRING( ent->v.ambient ));
}