Close hwengine properly when you got kicked by room host
authorWuzzy <Wuzzy2@mail.ru>
Mon, 13 Aug 2018 20:19:32 +0200
changeset 13659 1889e4e95794
parent 13658 73993abb85d7
child 13660 9b1ba92083f1
Close hwengine properly when you got kicked by room host
ChangeLog.txt
QTfrontend/game.cpp
--- a/ChangeLog.txt	Mon Aug 13 16:31:22 2018 +0200
+++ b/ChangeLog.txt	Mon Aug 13 20:19:32 2018 +0200
@@ -35,6 +35,7 @@
  + Add setting to disable audio dampening when losing window focus
  * Fix rare crash when aborting video encoding in progress
  * Controllers are detected again
+ * Fix failure to shutdown game window properly after player got kicked
  * No longer allow having schemes with equal names (case-insensitive)
  * Pseudo player names in chat (like “[server]”) are no longer clickable
  * Lobby/room: No longer allow opening context menu if no player selected
--- a/QTfrontend/game.cpp	Mon Aug 13 16:31:22 2018 +0200
+++ b/QTfrontend/game.cpp	Mon Aug 13 20:19:32 2018 +0200
@@ -531,7 +531,7 @@
 void HWGame::abort()
 {
     QByteArray buf;
-    HWProto::addStringToBuffer(buf, QString("efinish"));
+    HWProto::addStringToBuffer(buf, QString("eforcequit"));
     RawSendIPC(buf);
 }