QTfrontend/game.cpp
changeset 13823 d012948b1eda
parent 13659 1889e4e95794
child 13970 f791c46b47a4
--- 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;