From 28571a14572cb21a78feea1b81e4c2bcb9cb1422 Mon Sep 17 00:00:00 2001 From: Jelle Meeus Date: Thu, 29 Aug 2024 17:03:26 +0200 Subject: [PATCH] fix:compile warnings --- src/IndividualProgression.cpp | 10 +++++----- src/IndividualProgressionPlayer.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/IndividualProgression.cpp b/src/IndividualProgression.cpp index 98aef72..474e812 100644 --- a/src/IndividualProgression.cpp +++ b/src/IndividualProgression.cpp @@ -71,7 +71,7 @@ void IndividualProgression::ApplyGearStatsTuning(Player* player, float& computed if (item->Quality != ITEM_QUALITY_EPIC) // Non-endgame gear is okay return; if ((hasPassedProgression(player, PROGRESSION_NAXX40) && (item->RequiredLevel <= 60)) || - hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70)) + (hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70))) { computedAdjustment -= (100.0f * previousGearTuning); } @@ -82,7 +82,7 @@ void IndividualProgression::ComputeGearTuning(Player* player, float& computedAdj if (item->Quality != ITEM_QUALITY_EPIC) // Non-endgame gear is okay return; if ((hasPassedProgression(player, PROGRESSION_NAXX40) && (item->RequiredLevel <= 60)) || - hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70)) + (hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70))) { computedAdjustment += previousGearTuning; } @@ -133,11 +133,11 @@ void IndividualProgression::AdjustWotLKStats(Player* player) const AdjustStats(player, computedAdjustment, computedAdjustment); } -void IndividualProgression::AdjustStats(Player* player, float computedAdjustment, float computedHealingAdjustment) +void IndividualProgression::AdjustStats(Player* player, float computedAdjustment, float /*computedHealingAdjustment*/) { - int32 bp0 = 0; // This would be the damage taken adjustment value, but we are already adjusting health + // int32 bp0 = 0; // This would be the damage taken adjustment value, but we are already adjusting health auto bp1 = static_cast(computedAdjustment); - auto bp1Healing = static_cast(computedHealingAdjustment); + // auto bp1Healing = static_cast(computedHealingAdjustment); player->RemoveAura(ABSORB_SPELL); player->CastCustomSpell(player, ABSORB_SPELL, &bp1, nullptr, nullptr, false); diff --git a/src/IndividualProgressionPlayer.cpp b/src/IndividualProgressionPlayer.cpp index 69e97e2..695dcee 100644 --- a/src/IndividualProgressionPlayer.cpp +++ b/src/IndividualProgressionPlayer.cpp @@ -307,7 +307,7 @@ public: } } - bool OnUpdateFishingSkill(Player* player, int32 /*skill*/, int32 /*zone_skill*/, int32 chance, int32 roll) override + bool OnUpdateFishingSkill(Player* /*player*/, int32 /*skill*/, int32 /*zone_skill*/, int32 chance, int32 roll) override { if (!sIndividualProgression->enabled || !sIndividualProgression->fishingFix) return true; @@ -530,7 +530,7 @@ private: static void AdjustStats(Pet* pet, float computedAdjustment, float hpAdjustment) { - int32 bp0 = 0; // This would be the damage taken adjustment value, but we are already adjusting health + // int32 bp0 = 0; // This would be the damage taken adjustment value, but we are already adjusting health auto bp1 = static_cast(computedAdjustment); auto bp2 = static_cast(hpAdjustment); @@ -612,7 +612,7 @@ public: } } - void ModifySpellDamageTaken(Unit* /*target*/, Unit* attacker, int32& damage, SpellInfo const* spellInfo) override + void ModifySpellDamageTaken(Unit* /*target*/, Unit* attacker, int32& damage, SpellInfo const* /*spellInfo*/) override { if (!sIndividualProgression->enabled || !attacker) return;