O01eg  
          
              
                June 29, 2013,  6:12pm
               
              #1 
           
         
        
          This patch corrects server’s behaviour so remote client can successfully connect to. Also it fixes bugs.vcmi.eu/view.php?id=1308 .
Index: server/CVCMIServer.cpp
===================================================================
--- server/CVCMIServer.cpp	(revision 3432)
+++ server/CVCMIServer.cpp	(working copy)
@@ -205,10 +205,10 @@
 	initConnection(pc);
 	upcomingConnection = nullptr;
 
+	startListeningThread(pc);
+
 	*pc << (ui8)pc->connectionID << curmap;
 
-	startListeningThread(pc);
-
 	announceTxt(pc->name + " joins the game");
 	auto pj = new PlayerJoined();
 	pj->playerName = pc->name; 
        
           
         
            
       
      
        
          
          
            Tow  
          
              
                June 30, 2013,  8:06pm
               
              #2 
           
         
        
          Thank you for the patch, I’ll get to it within a few days.
         
        
           
         
            
       
      
        
          
          
            Tow  
          
              
                July 2, 2013,  4:48pm
               
              #3 
           
         
        
          Committed as part of r3436.
         
        
           
         
            
       
      
        
          
          
            O01eg  
          
              
                July 2, 2013,  5:10pm
               
              #4 
           
         
        
          disableSmartVectorMemberSerialization is used twice: github.com/vcmi/vcmi/commit/4be … fea48cb514 
Looks like one should be enableSmartVectorMemberSerialization instead.
         
        
           
         
            
       
      
        
          
          
            Tow  
          
              
                July 2, 2013,  5:13pm
               
              #5 
           
         
        
          
Why? Both replaced calls were setting the flag to false, so there will be no change in behaviour.