--- deliantra/server/common/player.C 2006/12/16 03:08:25 1.10 +++ deliantra/server/common/player.C 2007/01/06 14:42:29 1.13 @@ -1,6 +1,7 @@ /* CrossFire, A Multiplayer game for X-windows + Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team Copyright (C) 2002 Mark Wedel & Crossfire Development Team Copyright (C) 1992 Frank Tore Johansen @@ -24,48 +25,6 @@ #include #include -void -free_player (player *pl) -{ - if (first_player != pl) - { - player *prev = first_player; - - while (prev != NULL && prev->next != NULL && prev->next != pl) - prev = prev->next; - - if (prev->next != pl) - { - LOG (llevError, "Free_player: Can't find previous player.\n"); - exit (1); - } - - prev->next = pl->next; - } - else - first_player = pl->next; - - if (pl->ob) - { - pl->ob->contr = 0; - pl->ob->destroy (); - } - - if (pl->socket) - { - pl->socket->pl = 0; - pl->socket->send_packet ("goodbye"); - pl->socket->destroy (); - } - - /* Clear item stack */ - if (pl->stack_items) - free (pl->stack_items); - - delete pl; -} - - /* Determine if the attacktype represented by the * specified attack-number is enabled for dragon players. * A dragon player (quetzal) can gain resistances for