Skip to content

Commit 40fef36

Browse files
authored
fix: coins dropping on killer (#1948)
tested that when a player dies the coins spawn on their body instead
1 parent bf020ba commit 40fef36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dGame/dComponents/DestroyableComponent.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
755755

756756
const auto isPlayer = m_Parent->IsPlayer();
757757

758-
GameMessages::SendDie(m_Parent, source, source, true, killType, deathType, 0, 0, 0, isPlayer, false, 1);
758+
GameMessages::SendDie(m_Parent, source, source, true, killType, deathType, 0, 0, 0, isPlayer, true, 1);
759759

760760
//NANI?!
761761
if (!isPlayer) {
@@ -785,8 +785,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
785785
lootMsg.sourceID = source;
786786
lootMsg.item = LOT_NULL;
787787
lootMsg.Send();
788-
lootMsg.Send(m_Parent->GetSystemAddress());
789-
character->SetCoins(coinsTotal, eLootSourceType::PICKUP);
788+
character->SetCoins(coinsTotal, eLootSourceType::DELETION);
790789
}
791790
}
792791

0 commit comments

Comments
 (0)