Implement the TriggerItemDrop function.

This commit is contained in:
Mr_Goldberg 2020-06-20 21:17:31 -04:00
parent a0648d454c
commit 02ee5f9a6d
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 5 additions and 0 deletions

View File

@ -540,6 +540,11 @@ bool TriggerItemDrop( SteamInventoryResult_t *pResultHandle, SteamItemDef_t drop
{
PRINT_DEBUG("TriggerItemDrop %p %i\n", pResultHandle, dropListDefinition);
//TODO: if gameserver return false
std::lock_guard<std::recursive_mutex> lock(global_mutex);
struct Steam_Inventory_Requests* request = new_inventory_result(false);
if (pResultHandle != nullptr)
*pResultHandle = request->inventory_result;
return true;
}