fix:compile warnings

This commit is contained in:
Jelle Meeus
2024-08-29 17:03:26 +02:00
parent 65849389e6
commit 28571a1457
2 changed files with 8 additions and 8 deletions

View File

@@ -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<int32>(computedAdjustment);
auto bp1Healing = static_cast<int32>(computedHealingAdjustment);
// auto bp1Healing = static_cast<int32>(computedHealingAdjustment);
player->RemoveAura(ABSORB_SPELL);
player->CastCustomSpell(player, ABSORB_SPELL, &bp1, nullptr, nullptr, false);