summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-08 19:48:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-08 19:48:26 +0300
commit196cc38da19b867eaa9419343dd6ecd8212af354 (patch)
treeafb2d39f88c213702a339cae6fa08f8248b5c1af /src/client.cpp
parenta80a1c69f8a5f4db88ade16e3b9d53f7b648be47 (diff)
downloadplus-196cc38da19b867eaa9419343dd6ecd8212af354.tar.gz
plus-196cc38da19b867eaa9419343dd6ecd8212af354.tar.bz2
plus-196cc38da19b867eaa9419343dd6ecd8212af354.tar.xz
plus-196cc38da19b867eaa9419343dd6ecd8212af354.zip
Fix compilation errors and warnings in different modes.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 5bf560d32..66a895264 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -798,6 +798,7 @@ void Client::gameClear()
int Client::testsExec() const
{
+#ifdef USE_OPENGL
if (mOptions.test.empty())
{
TestMain test;
@@ -808,6 +809,9 @@ int Client::testsExec() const
TestLauncher launcher(mOptions.test);
return launcher.exec();
}
+#else
+ return 0;
+#endif
}
int Client::gameExec()