QTfrontend/net/newnetclient.cpp
changeset 14927 8b5d06749026
parent 14924 5119203470f3
child 15438 5fcdc072d706
--- 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;
     }