--- deliantra/server/socket/item.C 2006/12/19 05:41:22 1.26 +++ deliantra/server/socket/item.C 2006/12/20 01:19:11 1.27 @@ -216,10 +216,9 @@ for (tmp = get_map_ob (pl->map, pl->x, pl->y); tmp && tmp->above; tmp = tmp->above) ; - packet sl; - pl->contr->socket->send_packet ("delinv 0"); + packet sl; sl.printf ("item%d ", pl->contr->socket->itemcmd); sl << uint32 (0); @@ -317,12 +316,10 @@ object *tmp; int got_one = 0; - packet sl; - sl.printf ("delinv %d", op->count); - pl->contr->socket->send_packet (sl); + pl->contr->socket->send_packet_printf ("delinv %d", op->count); - sl.reset (); + packet sl; sl.printf ("item%d ", pl->contr->socket->itemcmd); sl << uint32 (op->count); @@ -393,10 +390,9 @@ LOG (llevDebug, "We have not sent item %s (%d)\n", &op->name, op->count); } - packet sl; + packet sl ("upditem"); - sl << "upditem " - << uint8 (flags); + sl << uint8 (flags); if (op->head) op = op->head; @@ -534,10 +530,9 @@ void esrv_del_item (player *pl, int tag) { - packet sl; + packet sl ("delitem"); - sl << "delitem " - << uint32 (tag); + sl << uint32 (tag); pl->socket->send_packet (sl); }