diff options
| author | oy <Tom_Adams@web.de> | 2012-01-10 00:49:31 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-10 00:49:31 +0100 |
| commit | dfe91338f03534a6c8ed596f16742e7a1617d78e (patch) | |
| tree | 4f2f93488745628c56dbd4d29d8b482dc584a724 /src/game/client/components/damageind.cpp | |
| parent | 9251796c3a8e3f31f9aa52ef84b9e0ce475d2f9b (diff) | |
| download | zcatch-dfe91338f03534a6c8ed596f16742e7a1617d78e.tar.gz zcatch-dfe91338f03534a6c8ed596f16742e7a1617d78e.zip | |
added pause command. Closes #15
Diffstat (limited to 'src/game/client/components/damageind.cpp')
| -rw-r--r-- | src/game/client/components/damageind.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/components/damageind.cpp b/src/game/client/components/damageind.cpp index e2da21e1..0f521753 100644 --- a/src/game/client/components/damageind.cpp +++ b/src/game/client/components/damageind.cpp @@ -60,6 +60,11 @@ void CDamageInd::OnRender() else m_aItems[i].m_StartTime += (Client()->LocalTime()-s_LastLocalTime)*(1.0f-pInfo->m_Speed); } + else + { + if(m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_PAUSED) + m_aItems[i].m_StartTime += Client()->LocalTime()-s_LastLocalTime; + } float Life = 0.75f - (Client()->LocalTime() - m_aItems[i].m_StartTime); if(Life < 0.0f) |