mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 13:51:45 +08:00
engine: share playermove ClearPhysEnts function
This commit is contained in:
@@ -697,6 +697,5 @@ void SV_RunLightStyles( void );
|
||||
void SV_SetLightStyle( int style, const char* s, float f );
|
||||
const char *SV_GetLightStyle( int style );
|
||||
int SV_LightForEntity( edict_t *pEdict );
|
||||
void SV_ClearPhysEnts( void );
|
||||
|
||||
#endif//SERVER_H
|
||||
|
||||
@@ -18,6 +18,7 @@ GNU General Public License for more details.
|
||||
#include "net_encode.h"
|
||||
#include "library.h"
|
||||
#include "voice.h"
|
||||
#include "pm_local.h"
|
||||
|
||||
#if XASH_LOW_MEMORY != 2
|
||||
int SV_UPDATE_BACKUP = SINGLEPLAYER_BACKUP;
|
||||
@@ -651,7 +652,7 @@ void SV_DeactivateServer( void )
|
||||
|
||||
SV_FreeEdicts ();
|
||||
|
||||
SV_ClearPhysEnts ();
|
||||
PM_ClearPhysEnts( svgame.pmove );
|
||||
|
||||
SV_EmptyStringPool();
|
||||
|
||||
|
||||
@@ -22,14 +22,6 @@ GNU General Public License for more details.
|
||||
|
||||
static qboolean has_update = false;
|
||||
|
||||
void SV_ClearPhysEnts( void )
|
||||
{
|
||||
svgame.pmove->numtouch = 0;
|
||||
svgame.pmove->numvisent = 0;
|
||||
svgame.pmove->nummoveent = 0;
|
||||
svgame.pmove->numphysent = 0;
|
||||
}
|
||||
|
||||
qboolean SV_PlayerIsFrozen( edict_t *pClient )
|
||||
{
|
||||
if( sv_background_freeze.value && sv.background )
|
||||
|
||||
Reference in New Issue
Block a user