--- deliantra/server/socket/init.C 2007/01/23 01:05:18 1.37 +++ deliantra/server/socket/init.C 2007/03/14 01:19:10 1.40 @@ -132,13 +132,11 @@ mapy = 11; itemcmd = 1; /* Default is version item1 command */ - faces_sent = salloc0 (nrofpixmaps); - /* Do this so we don't send a face command for the client for * this face. Face 0 is sent to the client to say clear * face information. */ - faces_sent[0] = NS_FACESENT_FACE; + faces_sent[0] = true; socket_ev.prio (PE_PRIO_NORMAL); socket_ev.fd (fd); @@ -159,7 +157,6 @@ { clients.erase (this); - sfree (faces_sent, nrofpixmaps); free (stats.range); free (stats.title); free (host); @@ -228,8 +225,6 @@ cst_lst.time_start = time (NULL); LOG (llevDebug, "Initialize new client/server data\n"); - - read_client_images (); } @@ -250,20 +245,9 @@ client * client::create (int fd, const char *peername) { - if (checkbanned (NULL, peername)) - { - LOG (llevInfo, "Banned host tried to connect: [%s]\n", peername); - return 0; - } - else - { - client *ns = new client (dup (fd), peername); - - ns->instantiate (); // effectively a nop right now - - INVOKE_CLIENT (CONNECT, ns); - - return ns; - } + client *ns = new client (dup (fd), peername); + ns->instantiate (); // effectively a nop right now + INVOKE_CLIENT (CONNECT, ns); + return ns; }