From 3d802dd5aa4a02ac18fe27269f9e71989b259c09 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 8 Jul 2014 02:00:13 +0200 Subject: [PATCH] Fix: ingame menu doesn't stop reacting anymore --- src/game/client/components/menus_ingame.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp index b91a4f8fc..6c06c1132 100644 --- a/src/game/client/components/menus_ingame.cpp +++ b/src/game/client/components/menus_ingame.cpp @@ -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); + } } }