no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1094 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user