Browse Source

engine: server: don't assert for NULL player in FatPAS/PVS if we don't need it

pull/2/head
Alibek Omarov 3 years ago
parent
commit
ca3544d559
  1. 8
      engine/server/sv_game.c

8
engine/server/sv_game.c

@ -4150,13 +4150,13 @@ byte *pfnSetFatPVS( const float *org ) @@ -4150,13 +4150,13 @@ byte *pfnSetFatPVS( const float *org )
if( !sv.worldmodel->visdata || sv_novis->value || !org || CL_DisableVisibility( ))
fullvis = true;
ASSERT( pfnGetCurrentPlayer() != -1 );
// portals can't change viewpoint!
if( !FBitSet( sv.hostflags, SVF_MERGE_VISIBILITY ))
{
vec3_t viewPos, offset;
ASSERT( pfnGetCurrentPlayer() != -1 );
// see code from client.cpp for understanding:
// org = pView->v.origin + pView->v.view_ofs;
// if ( pView->v.flags & FL_DUCKING )
@ -4200,13 +4200,13 @@ byte *pfnSetFatPAS( const float *org ) @@ -4200,13 +4200,13 @@ byte *pfnSetFatPAS( const float *org )
if( !sv.worldmodel->visdata || sv_novis->value || !org || CL_DisableVisibility( ))
fullvis = true;
ASSERT( pfnGetCurrentPlayer() != -1 );
// portals can't change viewpoint!
if( !FBitSet( sv.hostflags, SVF_MERGE_VISIBILITY ))
{
vec3_t viewPos, offset;
ASSERT( pfnGetCurrentPlayer() != -1 );
// see code from client.cpp for understanding:
// org = pView->v.origin + pView->v.view_ofs;
// if ( pView->v.flags & FL_DUCKING )

Loading…
Cancel
Save