From a3ec87e609772da96eb87f05f05bdc4abc3ac601 Mon Sep 17 00:00:00 2001
From: Alexander Baldeck <alexander@archlinux.org>
Date: Sun, 26 Dec 2004 05:02:29 +0000
Subject: covertied init to use the new config system (ignore last message)

---
 src/main.cpp | 5 ++---
 1 file 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
-- 
cgit v1.2.3-70-g09d2