summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ed6797b7..b8b37ddd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -213,8 +213,7 @@ void init_engine() {
set_color_depth(16);
Init_2xSaI(16);
#endif
- stretch_mode = get_config_int("settings", "stretch", 0);
- //stretch_mode = (float)config.getValue("stretch", 0);
+ stretch_mode = (unsigned char)config.getValue("stretch", 0);
set_window_title("The Mana World");
if(set_gfx_mode(get_config_int("settings", "screen", 0), 800, 600, 0, 0)) {
@@ -271,7 +270,7 @@ int main() {
init_engine();
// initialize sound-engine and start playing intro-theme /-kth5
try{
- if(get_config_int("settings", "sound", 0)==1)
+ if(config.getValue("sound", 0)==1)
sound.Init(32,20); // inits the sound-subsystem w/ 32 voices / 20 for mod
sound.SetVol(128,128,128); // sets intial volume parameters
//#ifdef WIN32