Fix: ingame menu doesn't stop reacting anymore

This commit is contained in:
def 2014-07-08 02:00:13 +02:00
parent d47b2bc7e1
commit 3d802dd5aa

View file

@ -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);
}
}
}