diff options
| author | oy <Tom_Adams@web.de> | 2010-11-17 00:38:20 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-11-17 00:38:20 +0100 |
| commit | 9ff7500f30172e0de16c43fb6e1661f94d7892e7 (patch) | |
| tree | 95f2ea7e42901c4ccac47757cc3c72526ffcd3f6 /src/game/client/components/particles.cpp | |
| parent | e46cb020896570140df82b452b5ea68ddbbf6518 (diff) | |
| download | zcatch-9ff7500f30172e0de16c43fb6e1661f94d7892e7.tar.gz zcatch-9ff7500f30172e0de16c43fb6e1661f94d7892e7.zip | |
fixed graphic problems with ninja when pausing a demo. Closes #269
Diffstat (limited to 'src/game/client/components/particles.cpp')
| -rw-r--r-- | src/game/client/components/particles.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; |