mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
disable free view when chatting as spectator. Closes #303
This commit is contained in:
parent
456fc7e9b6
commit
8e3cba8dbf
|
@ -197,7 +197,7 @@ void CControls::OnRender()
|
|||
|
||||
bool CControls::OnMouseMove(float x, float y)
|
||||
{
|
||||
if(m_pClient->m_Snap.m_pGameobj && m_pClient->m_Snap.m_pGameobj->m_Paused)
|
||||
if((m_pClient->m_Snap.m_pGameobj && m_pClient->m_Snap.m_pGameobj->m_Paused) || (m_pClient->m_Snap.m_Spectate && m_pClient->m_pChat->IsActive()))
|
||||
return false;
|
||||
m_MousePos += vec2(x, y); // TODO: ugly
|
||||
|
||||
|
|
Loading…
Reference in a new issue