summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-04-09 12:20:40 +0200
committererihel <erihel@gmail.com>2013-04-09 12:20:40 +0200
commita66abd4990c6c415bafe3ce879bc67d7539a2901 (patch)
tree39a3858c3bfedbdbea1d63cd459f0a98c7e84c83
parent7146cf8ee65d35dcc8b1bfa55bc7b25b3ca73d2d (diff)
downloadcolobot-a66abd4990c6c415bafe3ce879bc67d7539a2901.tar.gz
colobot-a66abd4990c6c415bafe3ce879bc67d7539a2901.tar.bz2
colobot-a66abd4990c6c415bafe3ce879bc67d7539a2901.zip
* Loading 3D sound settings from profile
-rw-r--r--src/ui/maindialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index 75db2a6..b75fab6 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -5719,6 +5719,11 @@ void CMainDialog::SetupRecall()
{
m_sound->SetMusicVolume(iValue);
}
+
+ if ( GetProfile().GetLocalProfileInt("Setup", "Sound3D", iValue) )
+ {
+ m_sound->SetSound3D(iValue == 1);
+ }
if ( GetProfile().GetLocalProfileInt("Setup", "EditIndentMode", iValue) )
{