diff --git a/dGame/Character.cpp b/dGame/Character.cpp index 55b37420..fe18cda8 100644 --- a/dGame/Character.cpp +++ b/dGame/Character.cpp @@ -567,7 +567,7 @@ const NiPoint3& Character::GetRespawnPoint(LWOMAPID map) const return pair->second; } -void Character::SetCoins(int64_t newCoins, int lootType) { +void Character::SetCoins(int64_t newCoins, int coinSource) { if (newCoins < 0) { newCoins = 0; @@ -575,7 +575,7 @@ void Character::SetCoins(int64_t newCoins, int lootType) { m_Coins = newCoins; - GameMessages::SendSetCurrency(EntityManager::Instance()->GetEntity(m_ObjectID), m_Coins, 0, 0, 0, 0, true, lootType); + GameMessages::SendSetCurrency(EntityManager::Instance()->GetEntity(m_ObjectID), m_Coins, 0, 0, 0, 0, true, coinSource); } bool Character::HasBeenToWorld(LWOMAPID mapID) const diff --git a/dGame/Character.h b/dGame/Character.h index 1f8f27e9..5d663d3f 100644 --- a/dGame/Character.h +++ b/dGame/Character.h @@ -312,9 +312,9 @@ public: * Updates the current amount of coins of the character by a specified amount, for achievements this is not sent * as it's tracked by the client * @param newCoins the amount of coins to update by - * @param message whether to notify the client of the change + * @param coinSource The source of the loot */ - void SetCoins(int64_t newCoins, int lootType); + void SetCoins(int64_t newCoins, int coinSource); /** * Get the entity this character belongs to