summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-26 22:33:53 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-26 22:33:53 +0000
commit9e4f25acd69489d949104eebec690ce5586849e6 (patch)
treedc4fe4483ece1a374bc44280c72e43cfd5725feb /src/main.cpp
parent34e18a818a7696629515c39b920ba35b64832748 (diff)
downloadMana-9e4f25acd69489d949104eebec690ce5586849e6.tar.gz
Mana-9e4f25acd69489d949104eebec690ce5586849e6.tar.bz2
Mana-9e4f25acd69489d949104eebec690ce5586849e6.tar.xz
Mana-9e4f25acd69489d949104eebec690ce5586849e6.zip
OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find a
nicer approach after the release.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ed6e9427..b1ef5661 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -150,7 +150,7 @@ void init_engine()
}
// Checking if /home/user/.tmw folder exists.
-
+
homeDir = pass->pw_dir;
homeDir += "/.tmw";
//sprintf(homeDir, "%s/.tmw", pass->pw_dir);
@@ -219,7 +219,7 @@ void init_engine()
SDL_WM_SetCaption("The Mana World", NULL);
#ifdef USE_OPENGL
- useOpenGL = true;
+ useOpenGL = (config.getValue("opengl", 0) == 1);
#else
useOpenGL = false;
#endif