mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix: ingame menu doesn't stop reacting anymore
This commit is contained in:
parent
d47b2bc7e1
commit
3d802dd5aa
|
@ -63,8 +63,11 @@ void CMenus::RenderGame(CUIRect MainView)
|
|||
static int s_SpectateButton = 0;
|
||||
if(DoButton_Menu(&s_SpectateButton, Localize("Spectate"), 0, &Button))
|
||||
{
|
||||
m_pClient->SendSwitchTeam(TEAM_SPECTATORS);
|
||||
SetActive(false);
|
||||
if(g_Config.m_ClDummy == 0 || m_pClient->Client()->DummyConnected())
|
||||
{
|
||||
m_pClient->SendSwitchTeam(TEAM_SPECTATORS);
|
||||
SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue