sends a request to the server to use a particular item in the inventory
| 827 | |
| 828 | // sends a request to the server to use a particular item in the inventory |
| 829 | void Inventory::SendRequestToServerToUse(int type, int id) { |
| 830 | // mprintf(0,"Sending request to server for T=%d ID=%d\n",type,id); |
| 831 | inven_item *node = FindItem(type, id); |
| 832 | if (node) { |
| 833 | MultiSendClientInventoryUseItem(type, id); |
| 834 | } else { |
| 835 | mprintf(0, "Sorry couldn't find it in your inventory\n"); |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | // searches the inventory for the specified type/id, sets the pos to it |
| 840 | bool Inventory::FindPos(int type, int id) { |
nothing calls this directly
no test coverage detected