Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion mp/src/game/client/viewrender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@
// Projective textures
#include "C_Env_Projected_Texture.h"

#ifdef NEO
// For removing screen overlays when in vision modes
#include "c_neo_player.h"
#endif

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

Expand Down Expand Up @@ -1217,8 +1222,12 @@ IMaterial *CViewRender::GetScreenOverlayMaterial( )
void CViewRender::PerformScreenOverlay( int x, int y, int w, int h )
{
VPROF("CViewRender::PerformScreenOverlay()");

#ifdef NEO
C_NEO_Player* pLocalPlayer = C_NEO_Player::GetLocalNEOPlayer();
if (m_ScreenOverlayMaterial && !pLocalPlayer->m_bInVision)
#else
if (m_ScreenOverlayMaterial)
#endif
{
tmZone( TELEMETRY_LEVEL0, TMZF_NONE, "%s", __FUNCTION__ );

Expand Down