fixed fixed camera position when chatting as spectator. Closes #880

This commit is contained in:
oy 2011-11-30 01:47:35 +01:00
parent 05f77f64af
commit df4e11dc82

View file

@ -209,7 +209,8 @@ void CControls::OnRender()
bool CControls::OnMouseMove(float x, float y)
{
if(m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_PAUSED)
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 && m_pClient->m_pChat->IsActive()))
return false;
m_MousePos += vec2(x, y); // TODO: ugly