summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-22 18:25:27 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-22 18:25:27 +0300
commit1e059ddb25a56995aca739987e3a4cd98cd344c4 (patch)
treea45805a4cdc71e16a54798bcdd7c127f339ff0c5
parent08bcb3fd512f6fdd2663a29f39a0e716114b7d3f (diff)
downloadmanaverse-1e059ddb25a56995aca739987e3a4cd98cd344c4.tar.gz
manaverse-1e059ddb25a56995aca739987e3a4cd98cd344c4.tar.bz2
manaverse-1e059ddb25a56995aca739987e3a4cd98cd344c4.tar.xz
manaverse-1e059ddb25a56995aca739987e3a4cd98cd344c4.zip
Dont start video mode detection if render command line parameter used.
-rw-r--r--src/client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 72aac6391..307418964 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -402,6 +402,7 @@ void Client::gameInit()
#if !defined(ANDROID) && !defined(__APPLE__) && \
!defined(__native_client__) && !defined(UNITTESTS)
if (!settings.options.safeMode &&
+ settings.options.renderer < 0 &&
settings.options.test.empty() &&
!config.getBoolValue("videodetected"))
{