From dfe91338f03534a6c8ed596f16742e7a1617d78e Mon Sep 17 00:00:00 2001 From: oy Date: Tue, 10 Jan 2012 00:49:31 +0100 Subject: added pause command. Closes #15 --- src/game/client/components/damageind.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/client/components/damageind.cpp') 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) -- cgit 1.4.1