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/controls.cpp | |
| parent | 9251796c3a8e3f31f9aa52ef84b9e0ce475d2f9b (diff) | |
| download | zcatch-dfe91338f03534a6c8ed596f16742e7a1617d78e.tar.gz zcatch-dfe91338f03534a6c8ed596f16742e7a1617d78e.zip | |
added pause command. Closes #15
Diffstat (limited to 'src/game/client/components/controls.cpp')
| -rw-r--r-- | src/game/client/components/controls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index dd856413..c0790799 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -199,7 +199,7 @@ int CControls::SnapInput(int *pData) void CControls::OnRender() { // update target pos - if(m_pClient->m_Snap.m_pGameInfoObj && !(m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_PAUSED || m_pClient->m_Snap.m_SpecInfo.m_Active)) + if(m_pClient->m_Snap.m_pGameInfoObj && !m_pClient->m_Snap.m_SpecInfo.m_Active) m_TargetPos = m_pClient->m_LocalCharacterPos + m_MousePos; else if(m_pClient->m_Snap.m_SpecInfo.m_Active && m_pClient->m_Snap.m_SpecInfo.m_UsePosition) m_TargetPos = m_pClient->m_Snap.m_SpecInfo.m_Position + m_MousePos; |