From 29d041c2f5bd3649a6ddae60d30bdf408ba2648f Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Tue, 29 Sep 2026 12:50:47 -0500 Subject: [PATCH] fix(loot): send no currency drop for loot without coins DLU sent a DropClientLoot for 0 coins with every drop whose coin range was 0, such as item-only smashables and scripted drops. None of the 3163 live currency drops was for 0 coins. Co-Authored-By: Claude Opus 5.5 --- dGame/dUtilities/Loot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dGame/dUtilities/Loot.cpp b/dGame/dUtilities/Loot.cpp index 64f8aa00d..6b647325d 100644 --- a/dGame/dUtilities/Loot.cpp +++ b/dGame/dUtilities/Loot.cpp @@ -391,7 +391,9 @@ void DropLoot(Entity* player, const LWOOBJID source, const std::map(droppedCoins) * lootEarners.size(), player); } - // Drops coins for each alive member of a team (or just a player) + // Drops coins for each alive member of a team (or just a player). + // Live sent no currency drop for loot without coins (none of 3163 live currency drops was for 0 coins). + if (droppedCoins == 0) lootEarners.clear(); for (auto member : lootEarners) { GameMessages::DropClientLoot lootMsg{}; lootMsg.target = member;