--- deliantra/server/socket/loop.c 2006/04/28 16:24:03 1.7 +++ deliantra/server/socket/loop.c 2006/05/21 23:46:39 1.8 @@ -513,6 +513,14 @@ reset_sleep(); /* Or the game would go too fast */ } +void flush_sockets(void) +{ + player *pl; + + for (pl = first_player; pl != NULL; pl = pl->next) + if (pl->socket.status != Ns_Dead) + Socket_Flush (&pl->socket); +} /** * This checks the sockets for input and exceptions, does the right thing.