diff options
| author | oy <Tom_Adams@web.de> | 2011-04-13 20:00:54 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-04-13 20:00:54 +0200 |
| commit | 1a5d70450f1de87224334e550706c67ad0cde6b8 (patch) | |
| tree | 2b39cfbbb5b87c1fcdb6b60dfb780f171e193b60 /src/game/client/components/menus.cpp | |
| parent | 2179ae011302ecc48a2289a88cc865cdcb4d9f72 (diff) | |
| download | zcatch-1a5d70450f1de87224334e550706c67ad0cde6b8.tar.gz zcatch-1a5d70450f1de87224334e550706c67ad0cde6b8.zip | |
added "reimplemented menu music by teetow-the-great-teetow" by Choupom
Diffstat (limited to 'src/game/client/components/menus.cpp')
| -rw-r--r-- | src/game/client/components/menus.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 8bed34c1..060384ec 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -8,6 +8,7 @@ #include <engine/config.h> #include <engine/editor.h> +#include <engine/engine.h> #include <engine/friends.h> #include <engine/graphics.h> #include <engine/keys.h> @@ -20,6 +21,7 @@ #include <game/generated/protocol.h> #include <game/generated/client_data.h> +#include <game/client/components/sounds.h> #include <game/client/gameclient.h> #include <game/client/lineinput.h> #include <game/localization.h> @@ -769,6 +771,7 @@ int CMenus::Render() ServerBrowser()->Refresh(IServerBrowser::TYPE_LAN); else if(g_Config.m_UiPage == PAGE_FAVORITES) ServerBrowser()->Refresh(IServerBrowser::TYPE_FAVORITES); + m_pClient->m_pSounds->Enqueue(CSounds::CHN_MUSIC, SOUND_MENU); s_First = false; } @@ -1332,6 +1335,7 @@ void CMenus::OnStateChange(int NewState, int OldState) if(NewState == IClient::STATE_OFFLINE) { + m_pClient->m_pSounds->Play(CSounds::CHN_MUSIC, SOUND_MENU, 1.0f, vec2(0, 0)); m_Popup = POPUP_NONE; if(Client()->ErrorString() && Client()->ErrorString()[0] != 0) { |