ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/item.C
(Generate patch)

Comparing deliantra/server/socket/item.C (file contents):
Revision 1.32 by root, Tue Jan 9 21:32:43 2007 UTC vs.
Revision 1.34 by root, Mon Jan 15 02:39:41 2007 UTC

448 * Sends whole inventory. 448 * Sends whole inventory.
449 */ 449 */
450void 450void
451esrv_send_inventory (object *pl, object *op) 451esrv_send_inventory (object *pl, object *op)
452{ 452{
453 if (!pl->contr->ns)//D
454 return;
455
453 int got_one = 0; 456 int got_one = 0;
454 457
455 pl->contr->ns->send_packet_printf ("delinv %d", op->count); 458 pl->contr->ns->send_packet_printf ("delinv %d", op->count);
456 459
457 packet sl; 460 packet sl;
628 * Sends item's info to player. 631 * Sends item's info to player.
629 */ 632 */
630void 633void
631esrv_send_item (object *pl, object *op) 634esrv_send_item (object *pl, object *op)
632{ 635{
636 if (!pl->contr->ns)
637 return;
638
633 /* If this is not the player object, do some more checks */ 639 /* If this is not the player object, do some more checks */
634 if (op != pl) 640 if (op != pl)
635 { 641 {
636 /* We only send 'visibile' objects to the client */ 642 /* We only send 'visibile' objects to the client */
637 if (!op->client_visible ()) 643 if (!op->client_visible ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines