fix: 修复自动编队时不重试的问题

This commit is contained in:
MistEO
2023-08-12 16:36:46 +08:00
parent 60644902a5
commit ff1668e6f0
2 changed files with 1 additions and 8 deletions

View File

@@ -157,11 +157,6 @@ std::vector<asst::TextRect> asst::BattleFormationTask::analyzer_opers()
}
sort_by_vertical_(opers_result);
if (m_the_right_name == opers_result.back().text) {
return {};
}
m_the_right_name = opers_result.back().text;
std::vector<TextRect> tr_res;
for (const auto& res : opers_result) {
tr_res.emplace_back(TextRect { res.rect, res.score, res.text });
@@ -256,7 +251,7 @@ bool asst::BattleFormationTask::click_role_table(battle::Role role)
{ battle::Role::Sniper, "Sniper" }, { battle::Role::Special, "Special" }, { battle::Role::Support, "Support" },
{ battle::Role::Tank, "Tank" }, { battle::Role::Warrior, "Warrior" }, { battle::Role::Unknown, "All" },
};
m_the_right_name.clear();
m_last_oper_name.clear();
auto role_iter = RoleNameType.find(role);
if (role_iter == RoleNameType.cend()) {

View File

@@ -53,11 +53,9 @@ namespace asst
std::string m_stage_name;
std::unordered_map<battle::Role, std::vector<OperGroup>> m_formation;
std::string m_the_right_name;
std::string m_support_unit_name;
DataResource m_data_resource = DataResource::Copilot;
std::vector<AdditionalFormation> m_additional;
std::string m_last_oper_name;
};
}