about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-01-06 20:03:57 +0100
committeroy <Tom_Adams@web.de>2012-01-06 20:03:57 +0100
commit27852934693bc8e3192bd06378095e457d436e71 (patch)
treeb54cc5dcec2434a30e012edd784d5ff078ebcb75 /src/game/client
parentf3ebfae18e409e48b6553019788fbf4818f40eee (diff)
downloadzcatch-27852934693bc8e3192bd06378095e457d436e71.tar.gz
zcatch-27852934693bc8e3192bd06378095e457d436e71.zip
don't start playing the music again if we're quitting
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/menus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp
index a2ccfba4..15837efc 100644
--- a/src/game/client/components/menus.cpp
+++ b/src/game/client/components/menus.cpp
@@ -1403,7 +1403,7 @@ void CMenus::OnStateChange(int NewState, int OldState)
 
 	if(NewState == IClient::STATE_OFFLINE)
 	{
-		if(OldState >= IClient::STATE_ONLINE)
+		if(OldState >= IClient::STATE_ONLINE && NewState < IClient::STATE_QUITING)
 			m_pClient->m_pSounds->Play(CSounds::CHN_MUSIC, SOUND_MENU, 1.0f);
 		m_Popup = POPUP_NONE;
 		if(Client()->ErrorString() && Client()->ErrorString()[0] != 0)