MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SendRequestToServerToUse

Method SendRequestToServerToUse

Descent3/Inventory.cpp:829–837  ·  view source on GitHub ↗

sends a request to the server to use a particular item in the inventory

Source from the content-addressed store, hash-verified

827
828// sends a request to the server to use a particular item in the inventory
829void 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
840bool Inventory::FindPos(int type, int id) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected