From cf99fb6f06f1e9cea25ab1bf4b091a7a15f3803c Mon Sep 17 00:00:00 2001 From: driAn Date: Sat, 2 Jun 2007 18:39:18 +0000 Subject: [PATCH] no message git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1094 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/client.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index b604591b..b7324cf1 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -278,16 +278,16 @@ void c2sinfo(playerent *d) // send update to the server packet = enet_packet_create (NULL, MAXTRANS, 0); ucharbuf p(packet->data, packet->dataLength); - if(clientpassword[0]) - { - putint(p, SV_PWD); - sendstring(clientpassword, p); - clientpassword[0] = 0; - } if(!c2sinit) // tell other clients who I am { packet->flags = ENET_PACKET_FLAG_RELIABLE; c2sinit = true; + if(clientpassword[0]) + { + putint(p, SV_PWD); + sendstring(clientpassword, p); + clientpassword[0] = 0; + } putint(p, SV_INITC2S); sendstring(player1->name, p); sendstring(player1->team, p);