From c575294587df9982c3cff2dfbf7d6fd04b769d12 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Tue, 21 Dec 2021 23:32:39 -0800 Subject: [PATCH] Changed variable names Changed variable names to more accurately match what they are --- dGame/Character.cpp | 4 ++-- dGame/Character.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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