diff options
author | Christian Klinger | 2016-09-26 14:33:01 +0200 |
---|---|---|
committer | Christian Klinger | 2016-09-26 14:58:16 +0200 |
commit | aacb7592d27583b27e3ad5d2ff3fc7561658e358 (patch) | |
tree | c9646fcecb6a7626a461ee618a34e498814c285e /src/client/net | |
parent | added the --config=FILE parameter and got rid of the SETTINGS macro. (diff) | |
download | pvs2-aacb7592d27583b27e3ad5d2ff3fc7561658e358.tar.gz pvs2-aacb7592d27583b27e3ad5d2ff3fc7561658e358.tar.xz pvs2-aacb7592d27583b27e3ad5d2ff3fc7561658e358.zip |
clients in exam-mode no longer send a screenshot. Also some refactoring.
Diffstat (limited to 'src/client/net')
-rw-r--r-- | src/client/net/serverconnection.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/net/serverconnection.cpp b/src/client/net/serverconnection.cpp index 54d95bc..3ff16bf 100644 --- a/src/client/net/serverconnection.cpp +++ b/src/client/net/serverconnection.cpp @@ -15,6 +15,7 @@ #include "../../shared/util.h" #include "../../shared/settings.h" #include "../util/platform/blankscreen.h" +#include "../clientapp/clientapp.h" #define CHALLENGE_LEN 20 @@ -180,6 +181,10 @@ void ServerConnection::handleMsg() // message THUMB - server requests screenshot as thumbnail if (id == _THUMB) { + if (clientApp->isExamMode()) { + qDebug() << "denied request for screenshot (exam mode)"; + return; + } int x = _fromServer.getFieldString(_X).toInt(); int y = _fromServer.getFieldString(_Y).toInt(); if (x < 32) |