… | |
… | |
263 | |
263 | |
264 | flags = query_flags (head); |
264 | flags = query_flags (head); |
265 | if (QUERY_FLAG (head, FLAG_NO_PICK)) |
265 | if (QUERY_FLAG (head, FLAG_NO_PICK)) |
266 | flags |= F_NOPICK; |
266 | flags |= F_NOPICK; |
267 | |
267 | |
268 | ns.send_face (head->face); |
268 | ns.send_face (head->face, -50); |
269 | ns.flush_fx (); |
269 | ns.flush_fx (); |
270 | |
270 | |
271 | if (QUERY_FLAG (head, FLAG_ANIMATE) && !ns.anims_sent[head->animation_id]) |
271 | if (QUERY_FLAG (head, FLAG_ANIMATE) && !ns.anims_sent[head->animation_id]) |
272 | ns.send_animation (head->animation_id); |
272 | ns.send_animation (head->animation_id); |
273 | |
273 | |
… | |
… | |
357 | packet sl; |
357 | packet sl; |
358 | sl.printf ("item%d ", pl->ns->itemcmd); |
358 | sl.printf ("item%d ", pl->ns->itemcmd); |
359 | |
359 | |
360 | sl << uint32 (0); |
360 | sl << uint32 (0); |
361 | |
361 | |
362 | pl->ns->send_face (empty_face); |
362 | pl->ns->send_face (empty_face, -50); |
363 | pl->ns->flush_fx (); |
363 | pl->ns->flush_fx (); |
364 | |
364 | |
365 | if (pl->ns->look_position) |
365 | if (pl->ns->look_position) |
366 | { |
366 | { |
367 | char buf[80]; |
367 | char buf[80]; |
… | |
… | |
425 | head = tmp; |
425 | head = tmp; |
426 | |
426 | |
427 | add_object_to_socklist (*pl->ns, sl, head); |
427 | add_object_to_socklist (*pl->ns, sl, head); |
428 | got_one++; |
428 | got_one++; |
429 | |
429 | |
430 | if (sl.length () >= (MAXSOCKBUF - MAXITEMLEN)) |
430 | if (sl.length () > MAXSOCKBUF - MAXITEMLEN) |
431 | { |
431 | { |
432 | pl->ns->send_packet (sl); |
432 | pl->ns->send_packet (sl); |
433 | |
433 | |
434 | sl.reset (); |
434 | sl.reset (); |
435 | sl.printf ("item%d ", pl->ns->itemcmd); |
435 | sl.printf ("item%d ", pl->ns->itemcmd); |
… | |
… | |
479 | |
479 | |
480 | /* IT is possible for players to accumulate a huge amount of |
480 | /* IT is possible for players to accumulate a huge amount of |
481 | * items (especially with some of the bags out there) to |
481 | * items (especially with some of the bags out there) to |
482 | * overflow the buffer. IF so, send multiple item commands. |
482 | * overflow the buffer. IF so, send multiple item commands. |
483 | */ |
483 | */ |
484 | if (sl.length () >= (MAXSOCKBUF - MAXITEMLEN)) |
484 | if (sl.length () > MAXSOCKBUF - MAXITEMLEN) |
485 | { |
485 | { |
486 | pl->contr->ns->send_packet (sl); |
486 | pl->contr->ns->send_packet (sl); |
487 | |
487 | |
488 | sl.reset (); |
488 | sl.reset (); |
489 | sl.printf ("item%d ", pl->contr->ns->itemcmd); |
489 | sl.printf ("item%d ", pl->contr->ns->itemcmd); |
… | |
… | |
556 | ns->last_weight = weight; |
556 | ns->last_weight = weight; |
557 | } |
557 | } |
558 | |
558 | |
559 | if (flags & UPD_FACE) |
559 | if (flags & UPD_FACE) |
560 | { |
560 | { |
561 | ns->send_face (op->face); |
561 | ns->send_face (op->face, -50); |
562 | ns->flush_fx (); |
562 | ns->flush_fx (); |
563 | sl << uint32 (op->face); |
563 | sl << uint32 (op->face); |
564 | } |
564 | } |
565 | |
565 | |
566 | if (flags & UPD_NAME) |
566 | if (flags & UPD_NAME) |