aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/clientmode_shared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/client/clientmode_shared.cpp')
-rw-r--r--mp/src/game/client/clientmode_shared.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/mp/src/game/client/clientmode_shared.cpp b/mp/src/game/client/clientmode_shared.cpp
index 5d10db6c..68bc89cb 100644
--- a/mp/src/game/client/clientmode_shared.cpp
+++ b/mp/src/game/client/clientmode_shared.cpp
@@ -470,8 +470,17 @@ bool ClientModeShared::ShouldDrawEntity(C_BaseEntity *pEnt)
return true;
}
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
bool ClientModeShared::ShouldDrawParticles( )
{
+#ifdef TF_CLIENT_DLL
+ C_TFPlayer *pTFPlayer = C_TFPlayer::GetLocalTFPlayer();
+ if ( pTFPlayer && !pTFPlayer->ShouldPlayerDrawParticles() )
+ return false;
+#endif // TF_CLIENT_DLL
+
return true;
}