… | |
… | |
502 | * |
502 | * |
503 | * flags is a list of values to update |
503 | * flags is a list of values to update |
504 | * to the client (as defined in newclient.h - might as well use the |
504 | * to the client (as defined in newclient.h - might as well use the |
505 | * same value both places. |
505 | * same value both places. |
506 | */ |
506 | */ |
507 | |
|
|
508 | void |
507 | void |
509 | esrv_update_item (int flags, object *pl, object *op) |
508 | esrv_update_item (int flags, object *pl, object *op) |
510 | { |
509 | { |
511 | /* If we have a request to send the player item, skip a few checks. */ |
510 | /* If we have a request to send the player item, skip a few checks. */ |
512 | if (op != pl) |
511 | if (op != pl) |
… | |
… | |
670 | |
669 | |
671 | /** |
670 | /** |
672 | * Tells the client to delete an item. Uses the item |
671 | * Tells the client to delete an item. Uses the item |
673 | * command with a -1 location. |
672 | * command with a -1 location. |
674 | */ |
673 | */ |
675 | |
|
|
676 | void |
674 | void |
677 | esrv_del_item (player *pl, int tag) |
675 | esrv_del_item (player *pl, int tag) |
678 | { |
676 | { |
679 | if (!pl->ns) |
677 | if (!pl->ns) |
680 | return; |
678 | return; |