- Temporary set delimiter to *, as \t seems to be endline now in Qt
authorunc0rr
Thu, 13 Dec 2007 22:24:06 +0000
changeset 655 e58a77556878
parent 654 1019b8fa8638
child 656 6d6d9d7b1054
- Temporary set delimiter to *, as \t seems to be endline now in Qt - Fix network game: avoid telling server the nick before it actually is set on fast network (found on FreeBSD)
QTfrontend/newnetclient.cpp
--- a/QTfrontend/newnetclient.cpp	Thu Dec 13 21:49:52 2007 +0000
+++ b/QTfrontend/newnetclient.cpp	Thu Dec 13 22:24:06 2007 +0000
@@ -25,7 +25,7 @@
 #include "gamecfgwidget.h"
 #include "teamselect.h"
 
-char delimeter='\t';
+char delimeter='*';
 
 HWNewNet::HWNewNet(GameUIConfig * config, GameCFGWidget* pGameCFGWidget, TeamSelWidget* pTeamSelWidget) :
   config(config),
@@ -43,8 +43,8 @@
 
 void HWNewNet::Connect(const QString & hostName, quint16 port, const QString & nick)
 {
+  mynick = nick;
   NetSocket.connectToHost(hostName, port);
-  mynick = nick;
 }
 
 void HWNewNet::Disconnect()