From: <tz...@us...> - 2006-10-19 00:22:10
|
Revision: 1913 http://svn.sourceforge.net/freeorion/revision/?rev=1913&view=rev Author: tzlaine Date: 2006-10-18 17:22:05 -0700 (Wed, 18 Oct 2006) Log Message: ----------- Added code to HumanClientApp to set initial music and UI sound volumes. This fixes the bug in which changes in these volumes do not persist after closing and relaunching FO. Modified Paths: -------------- trunk/FreeOrion/client/human/HumanClientApp.cpp Modified: trunk/FreeOrion/client/human/HumanClientApp.cpp =================================================================== --- trunk/FreeOrion/client/human/HumanClientApp.cpp 2006-10-18 23:55:15 UTC (rev 1912) +++ trunk/FreeOrion/client/human/HumanClientApp.cpp 2006-10-19 00:22:05 UTC (rev 1913) @@ -422,6 +422,9 @@ if (!(GetOptionsDB().Get<bool>("music-off"))) PlayMusic(ClientUI::SoundDir() / GetOptionsDB().Get<std::string>("bg-music"), -1); + SetMusicVolume(GetOptionsDB().Get<int>("music-volume")); + SetUISoundsVolume(GetOptionsDB().Get<int>("UI.sound.volume")); + boost::shared_ptr<GG::BrowseInfoWnd> default_browse_info_wnd( new GG::TextBoxBrowseInfoWnd(400, GG::GUI::GetGUI()->GetFont(ClientUI::Font(), ClientUI::Pts()), GG::Clr(0, 0, 0, 200), ClientUI::WndOuterBorderColor(), ClientUI::TextColor(), |