aboutsummaryrefslogtreecommitdiff
path: root/sword1/sword1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword1/sword1.cpp')
-rw-r--r--sword1/sword1.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp
index 9ee4c9102e..85cf4f05c6 100644
--- a/sword1/sword1.cpp
+++ b/sword1/sword1.cpp
@@ -109,6 +109,12 @@ void SwordEngine::initialize(void) {
_logic = new SwordLogic(_objectMan, _resMan, _screen, _mouse, _sound, _music, _menu);
_mouse->useLogicAndMenu(_logic, _menu);
+ _music->setVolume((uint8)ConfMan.getInt("music_volume"));
+ uint8 speechVol = (uint8)ConfMan.getInt("speech_volume");
+ if (!speechVol)
+ speechVol = 192;
+ _sound->setVolume((uint8)ConfMan.getInt("sfx_volume"), speechVol);
+
_systemVars.justRestoredGame = _systemVars.currentCD =
_systemVars.gamePaused = 0;
_systemVars.deathScreenFlag = 3;