mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 21:50:59 +01:00
engine: server: don't assert for NULL player in FatPAS/PVS if we don't need it
This commit is contained in:
parent
7a0a355baf
commit
ca3544d559
@ -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 )
|
||||
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…
Reference in New Issue
Block a user