From 9ff7500f30172e0de16c43fb6e1661f94d7892e7 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 17 Nov 2010 00:38:20 +0100 Subject: fixed graphic problems with ninja when pausing a demo. Closes #269 --- src/game/client/components/particles.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game/client/components/particles.cpp') diff --git a/src/game/client/components/particles.cpp b/src/game/client/components/particles.cpp index c12231ca..479ac7ba 100644 --- a/src/game/client/components/particles.cpp +++ b/src/game/client/components/particles.cpp @@ -35,6 +35,13 @@ void CParticles::OnReset() void CParticles::Add(int Group, CParticle *pPart) { + if(Client()->State() == IClient::STATE_DEMOPLAYBACK) + { + const IDemoPlayer::CInfo *pInfo = DemoPlayer()->BaseInfo(); + if(pInfo->m_Paused) + return; + } + if (m_FirstFree == -1) return; -- cgit 1.4.1