diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-26 05:02:29 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-26 05:02:29 +0000 |
commit | a3ec87e609772da96eb87f05f05bdc4abc3ac601 (patch) | |
tree | 262fa418fbf53bb28d8c7d091ba15e7cafb761bd /src | |
parent | 18ff7870d13fb624b7c60e5d19c72d40d709571e (diff) | |
download | mana-a3ec87e609772da96eb87f05f05bdc4abc3ac601.tar.gz mana-a3ec87e609772da96eb87f05f05bdc4abc3ac601.tar.bz2 mana-a3ec87e609772da96eb87f05f05bdc4abc3ac601.tar.xz mana-a3ec87e609772da96eb87f05f05bdc4abc3ac601.zip |
covertied init to use the new config system (ignore last message)
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 5 |
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 |