mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Fix Linux compile warnings
This commit is contained in:
@@ -362,8 +362,8 @@ private:
|
||||
{
|
||||
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)
|
||||
if ((hasPassedProgression(player, PROGRESSION_NAXX40) && (item->RequiredLevel <= 60)) ||
|
||||
hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70))
|
||||
{
|
||||
computedAdjustment -= (100.0 * previousGearTuning);
|
||||
}
|
||||
@@ -373,8 +373,8 @@ private:
|
||||
{
|
||||
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)
|
||||
if ((hasPassedProgression(player, PROGRESSION_NAXX40) && (item->RequiredLevel <= 60)) ||
|
||||
hasPassedProgression(player, PROGRESSION_TBC_TIER_5) && (item->RequiredLevel <=70))
|
||||
{
|
||||
computedAdjustment += previousGearTuning;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class spell_detect_magic : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_detect_magic);
|
||||
|
||||
void HandleDummy(SpellEffIndex effIndex)
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (GetCaster()->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
@@ -161,7 +161,7 @@ public:
|
||||
return new gobject_scarab_gongAI(object);
|
||||
}
|
||||
|
||||
bool OnQuestReward(Player *player, GameObject *go, Quest const *quest, uint32 opt) override
|
||||
bool OnQuestReward(Player *player, GameObject *go, Quest const *quest, uint32 /*opt*/) override
|
||||
{
|
||||
if (quest->GetQuestId() != QUEST_BANG_A_GONG)
|
||||
return false;
|
||||
|
||||
@@ -100,7 +100,7 @@ public:
|
||||
Talk(SAY_INTRO);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* who) override
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ class onyxia_entrance_trigger : public AreaTriggerScript
|
||||
public:
|
||||
onyxia_entrance_trigger() : AreaTriggerScript("onyxia_entrance_trigger") { }
|
||||
|
||||
bool OnTrigger(Player* player, AreaTrigger const* areaTrigger) override
|
||||
bool OnTrigger(Player* player, AreaTrigger const* /*areaTrigger*/) override
|
||||
{
|
||||
if (player->getLevel() < 80)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user