--- deliantra/server/socket/loop.C 2006/12/17 19:07:23 1.27 +++ deliantra/server/socket/loop.C 2006/12/21 06:12:37 1.30 @@ -118,7 +118,7 @@ flush_sockets (void) { for (sockvec::iterator i = clients.begin (); i != clients.end (); ++i) - if ((*i)->status != Ns_Dead) + if (!(*i)->destroyed) (*i)->flush (); } @@ -146,7 +146,7 @@ player *npl = pl->next; //TODO: must be handled cleanly elsewhere - if (!pl->socket || pl->socket->status == Ns_Dead) + if (!pl->socket || pl->socket->destroyed) { save_player (pl->ob, 0); @@ -167,7 +167,7 @@ { client *s = *i; - if (s->status == Ns_Dead) + if (s->destroyed) { clients.erase (i); delete s; @@ -184,15 +184,8 @@ client *s = *i; player *pl = s->pl; - s->handle_packet (); - - for (int i = 16; --i; ) //D - if (!//D - s->handle_command () - ) break;//D - //TODO: should not be done here, either - if (s->status != Ns_Dead && pl) + if (!s->destroyed && pl) { /* Update the players stats once per tick. More efficient than * sending them whenever they change, and probably just as useful