Play a short sound when enabling sound effects

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7184 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-12-29 19:45:32 +00:00
parent 91a6a0604e
commit ad44673071

View File

@ -154,6 +154,11 @@ void OptionsScreenAudio::eventCallback(Widget* widget, const std::string& name,
UserConfigParams::m_sfx = w->getState();
sfx_manager->soundToggled(UserConfigParams::m_sfx);
if (UserConfigParams::m_sfx)
{
sfx_manager->quickSound("beep");
}
}
} // eventCallback