summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-01 14:41:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-01 14:53:49 +0300
commit222748a7e0c79225c66485898b913aa60f56cfe2 (patch)
tree38e27f08cec39bf8cca26df8caade81c112245e8 /src/map.cpp
parentf4df2a0fd2d9c01b6f756c4b00ed9848f319a1b0 (diff)
downloadplus-222748a7e0c79225c66485898b913aa60f56cfe2.tar.gz
plus-222748a7e0c79225c66485898b913aa60f56cfe2.tar.bz2
plus-222748a7e0c79225c66485898b913aa60f56cfe2.tar.xz
plus-222748a7e0c79225c66485898b913aa60f56cfe2.zip
add way to map render mode selection to actual modes.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 189981f80..388f2eccf 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -148,9 +148,9 @@ Map::Map(const int width, const int height,
mOverlayDetail(config.getIntValue("OverlayDetail")),
mOpacity(config.getFloatValue("guialpha")),
#ifdef USE_OPENGL
- mOpenGL(config.getIntValue("opengl")),
+ mOpenGL(intToRenderType(config.getIntValue("opengl"))),
#else
- mOpenGL(0),
+ mOpenGL(RENDER_SOFTWARE),
#endif
mPvp(0),
mTilesetsIndexed(false),