summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-16 14:18:33 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-16 14:18:33 +0000
commitf34960bc4a774764062a7bff70596779006c9413 (patch)
treeeff906ad2f016a47689e3d19902057c13e00d7e5 /src/main.cpp
parent62de779017018a6e8f89fed9e0c930fc4904f5d2 (diff)
downloadmana-f34960bc4a774764062a7bff70596779006c9413.tar.gz
mana-f34960bc4a774764062a7bff70596779006c9413.tar.bz2
mana-f34960bc4a774764062a7bff70596779006c9413.tar.xz
mana-f34960bc4a774764062a7bff70596779006c9413.zip
- Readding stripping to executable (Dev-cpp project options)
- New slider skin - Some updates to win32 compile guide - Cleaned sound engine - Improved setup window (need testing)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9becaaf7..da90e701 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -182,6 +182,8 @@ void init_engine()
config.setValue("chatlog", "chatlog.txt");
#endif
config.setValue("remember", 1);
+ config.setValue("sfxVolume", 100);
+ config.setValue("musicVolume", 60);
config.write(dir);
}
@@ -294,7 +296,8 @@ void init_engine()
if (config.getValue("sound", 0) == 1) {
sound.init();
}
- //sound.setVolume(64);
+ sound.setSfxVolume(config.getValue("sfxVolume", 100));
+ sound.setMusicVolume(config.getValue("musicVolume", 60));
}
catch (const char *err) {
state = ERROR;