mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed fixed camera position when chatting as spectator. Closes #880
This commit is contained in:
parent
05f77f64af
commit
df4e11dc82
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue