engine: share playermove ClearPhysEnts function

This commit is contained in:
Alibek Omarov
2023-01-06 00:28:24 +03:00
parent 0bec78a958
commit 787d3bc5dd
9 changed files with 14 additions and 28 deletions
-1
View File
@@ -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
+2 -1
View File
@@ -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();
-8
View File
@@ -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 )