summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-02 16:13:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-03 21:50:05 +0300
commitf651273ebf2a8b11aa01ed1434ecb613177ced6a (patch)
treec51d2bed1476270e27ad95c5a46e15af32eaccdd /src/net
parent30846b7f68f1ad05a0719ae37f75fd2901a6545a (diff)
downloadmanaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.gz
manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.bz2
manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.xz
manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.zip
Add gui mode for dyecmd. Now only basic code added.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ipc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ipc.cpp b/src/net/ipc.cpp
index f6df452ac..e4a70abc8 100644
--- a/src/net/ipc.cpp
+++ b/src/net/ipc.cpp
@@ -187,6 +187,8 @@ void IPC::flush()
if (!mThreadLocked)
{
SDL_mutexP(mMutex);
+#ifndef DYECMD
+// probably need enable only commands in tool
if (chatWindow)
{
FOR_EACH (std::vector<std::string>::const_iterator, it,
@@ -195,6 +197,7 @@ void IPC::flush()
chatWindow->chatInput(*it);
}
}
+#endif
mDelayedCommands.clear();
SDL_mutexV(mMutex);
}