… | |
… | |
448 | * Sends whole inventory. |
448 | * Sends whole inventory. |
449 | */ |
449 | */ |
450 | void |
450 | void |
451 | esrv_send_inventory (object *pl, object *op) |
451 | esrv_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 | */ |
630 | void |
633 | void |
631 | esrv_send_item (object *pl, object *op) |
634 | esrv_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 ()) |