mirror of
https://github.com/azerothcore/mod-account-achievements
synced 2025-11-29 23:39:58 +08:00
fix(build): remove useless variables
This commit is contained in:
@@ -30,7 +30,7 @@ public:
|
|||||||
{
|
{
|
||||||
ChatHandler(pPlayer->GetSession()).SendSysMessage("This server is running the |cff4CFF00AccountAchievements |rmodule.");
|
ChatHandler(pPlayer->GetSession()).SendSysMessage("This server is running the |cff4CFF00AccountAchievements |rmodule.");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<uint32> Guids;
|
std::vector<uint32> Guids;
|
||||||
QueryResult result1 = CharacterDatabase.PQuery("SELECT guid, race FROM characters WHERE account = %u", pPlayer->GetSession()->GetAccountId());
|
QueryResult result1 = CharacterDatabase.PQuery("SELECT guid, race FROM characters WHERE account = %u", pPlayer->GetSession()->GetAccountId());
|
||||||
if (!result1)
|
if (!result1)
|
||||||
@@ -40,7 +40,6 @@ public:
|
|||||||
{
|
{
|
||||||
Field* fields = result1->Fetch();
|
Field* fields = result1->Fetch();
|
||||||
|
|
||||||
uint32 guid = fields[0].GetUInt32();
|
|
||||||
uint32 race = fields[1].GetUInt8();
|
uint32 race = fields[1].GetUInt8();
|
||||||
|
|
||||||
if ((Player::TeamIdForRace(race) == Player::TeamIdForRace(pPlayer->getRace())) || !limitrace)
|
if ((Player::TeamIdForRace(race) == Player::TeamIdForRace(pPlayer->getRace())) || !limitrace)
|
||||||
@@ -69,7 +68,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddAchievements(Player* player, uint32 AchievementID)
|
void AddAchievements(Player* player, uint32 AchievementID)
|
||||||
{
|
{
|
||||||
if (sConfigMgr->GetBoolDefault("Account.Achievements.Enable", true))
|
if (sConfigMgr->GetBoolDefault("Account.Achievements.Enable", true))
|
||||||
@@ -108,4 +107,4 @@ void AddAccountAchievementsScripts()
|
|||||||
{
|
{
|
||||||
new AccountAchievementsWorld;
|
new AccountAchievementsWorld;
|
||||||
new AccountAchievements;
|
new AccountAchievements;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user