diff -r b56639b52e59 -r d012948b1eda QTfrontend/game.cpp --- a/QTfrontend/game.cpp Tue Oct 02 22:11:15 2018 +0200 +++ b/QTfrontend/game.cpp Wed Oct 03 02:28:39 2018 +0200 @@ -346,6 +346,20 @@ RawSendIPC(buf); } +void HWGame::FromNetWarning(const QString & msg) +{ + QByteArray buf; + HWProto::addStringToBuffer(buf, "s\x00" + msg + "\x20\x20"); + RawSendIPC(buf); +} + +void HWGame::FromNetError(const QString & msg) +{ + QByteArray buf; + HWProto::addStringToBuffer(buf, "s\x05" + msg + "\x20\x20"); + RawSendIPC(buf); +} + void HWGame::onClientRead() { quint8 msglen;