mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Warning fix + ilvl function fix (#1210)
* 1 variable order warning fixed 70 unused variable warning fixed * Fixed GetEquipGearScore function --------- Co-authored-by: Julien MAS <julien.mas81@gmail.com>
This commit is contained in:
@@ -3020,7 +3020,7 @@ bool BGTactics::selectObjective(bool reset)
|
||||
std::vector<GameObject*> objectives;
|
||||
for (uint8 i = 0; i < 3; ++i)
|
||||
{
|
||||
WorldObject* pAttackObjectiveObject = nullptr;
|
||||
// WorldObject* pAttackObjectiveObject = nullptr; //not used, line marked for removal.
|
||||
float attackObjectiveDistance = FLT_MAX;
|
||||
|
||||
for (auto const& objective : AB_AttackObjectives)
|
||||
@@ -3071,7 +3071,7 @@ bool BGTactics::selectObjective(bool reset)
|
||||
std::vector<GameObject*> objectives;
|
||||
for (auto i = 0; i < 3; ++i)
|
||||
{
|
||||
WorldObject* pAttackObjectiveObject = nullptr;
|
||||
//WorldObject* pAttackObjectiveObject = nullptr; //not used, line marked for removal.
|
||||
float attackObjectiveDistance = FLT_MAX;
|
||||
|
||||
for (const auto& objective : AB_AttackObjectives)
|
||||
@@ -3755,7 +3755,7 @@ bool BGTactics::selectObjectiveWp(std::vector<BattleBotPath*> const& vPaths)
|
||||
if (bgType == BATTLEGROUND_RB)
|
||||
bgType = bg->GetBgTypeID(true);
|
||||
|
||||
PositionMap& posMap = context->GetValue<PositionMap&>("position")->Get();
|
||||
// PositionMap& posMap = context->GetValue<PositionMap&>("position")->Get(); //not used, line marked for removal.
|
||||
PositionInfo pos = context->GetValue<PositionMap&>("position")->Get()["bg objective"];
|
||||
if (!pos.isSet())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user