Remove unused REPLAY_START cruft from frontend
authorWuzzy <Wuzzy2@mail.ru>
Fri, 10 May 2019 23:30:42 +0200
changeset 14911 8b5d06749026
parent 14910 6b591186ab10
child 14912 c156273b57de
Remove unused REPLAY_START cruft from frontend
QTfrontend/net/newnetclient.cpp
--- a/QTfrontend/net/newnetclient.cpp	Fri May 10 23:24:56 2019 +0200
+++ b/QTfrontend/net/newnetclient.cpp	Fri May 10 23:30:42 2019 +0200
@@ -801,22 +801,10 @@
 
     if(netClientState == InLobby && lst[0] == "REPLAY_START")
     {
-        if(lst.size() < 2 || lst[1] != mynick)
-        {
-            qWarning("Net: Bad REPLAY_START message");
-            return;
-        }
-
-        for(int i = 1; i < lst.size(); ++i)
-        {
-            if (lst[i] == mynick)
-            {
-                netClientState = InRoom;
-                m_demo_data_pending = true;
-                emit EnteredGame();
-                emit roomMaster(false);
-            }
-        }
+        netClientState = InRoom;
+        m_demo_data_pending = true;
+        emit EnteredGame();
+        emit roomMaster(false);
         return;
     }