QTfrontend/game.cpp
changeset 13862 b2cc4e4e380c
parent 13846 d012948b1eda
child 13991 f791c46b47a4
--- a/QTfrontend/game.cpp	Wed Sep 05 20:09:32 2018 +0200
+++ b/QTfrontend/game.cpp	Thu Oct 04 21:17:21 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;