… | |
… | |
674 | */ |
674 | */ |
675 | |
675 | |
676 | void |
676 | void |
677 | esrv_del_item (player *pl, int tag) |
677 | esrv_del_item (player *pl, int tag) |
678 | { |
678 | { |
|
|
679 | if (!pl->ns) |
|
|
680 | return; |
|
|
681 | |
679 | packet sl ("delitem"); |
682 | packet sl ("delitem"); |
680 | |
683 | |
681 | sl << uint32 (tag); |
684 | sl << uint32 (tag); |
682 | |
685 | |
683 | pl->ns->send_packet (sl); |
686 | pl->ns->send_packet (sl); |
… | |
… | |
879 | else |
882 | else |
880 | new_draw_info (NDI_UNIQUE, 0, op, "You see nothing."); |
883 | new_draw_info (NDI_UNIQUE, 0, op, "You see nothing."); |
881 | } |
884 | } |
882 | } |
885 | } |
883 | |
886 | |
884 | |
|
|
885 | |
|
|
886 | /** Client wants to look at some object. Lets do so. */ |
887 | /** Client wants to look at some object. Lets do so. */ |
887 | void |
888 | void |
888 | LookAt (char *buf, int len, player *pl) |
889 | LookAt (char *buf, int len, player *pl) |
889 | { |
890 | { |
890 | int dx, dy; |
891 | int dx, dy; |