--- deliantra/server/socket/loop.C 2006/12/19 04:58:05 1.29 +++ 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; @@ -185,7 +185,7 @@ player *pl = s->pl; //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