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