--- deliantra/server/server/c_wiz.C 2007/01/06 14:42:30 1.30 +++ deliantra/server/server/c_wiz.C 2007/01/14 02:10:41 1.31 @@ -395,50 +395,6 @@ } /** - * Teleport next to target player. - */ - -/* mids 01/16/2002 */ -int -command_teleport (object *op, char *params) -{ - int i; - object *dummy; - player *pl; - - if (!op) - return 0; - - if (params == NULL) - { - new_draw_info (NDI_UNIQUE, 0, op, "Usage: teleport ."); - return 1; - } - - pl = get_other_player_from_name (op, params); - if (!pl) - return 1; - - i = find_free_spot (pl->ob, pl->ob->map, pl->ob->x, pl->ob->y, 1, 9); - if (i == -1) - { - new_draw_info (NDI_UNIQUE, 0, op, "Can not find a free spot to teleport to."); - return 1; - } - - dummy = object::create (); - EXIT_PATH (dummy) = pl->ob->map->path; - EXIT_X (dummy) = pl->ob->x + freearr_x[i]; - EXIT_Y (dummy) = pl->ob->y + freearr_y[i]; - op->enter_exit (dummy); - dummy->destroy (); - if (!op->contr->hidden) - new_draw_info (NDI_UNIQUE, 0, pl->ob, "You see a portal open."); - new_draw_info (NDI_UNIQUE, 0, op, "OK."); - return 1; -} - -/** * This function is a real mess, because we're stucking getting * the entire item description in one block of text, so we just * can't simply parse it - we need to look for double quotes