This commit is contained in:
aozhiwei 2022-03-22 20:08:51 +08:00
parent aee60ccd96
commit 76bcb51b66
2 changed files with 18 additions and 2 deletions

View File

@ -773,5 +773,21 @@ void RoomMgr::SendGetBattleData(std::vector<std::shared_ptr<cs::CMJoin>>& join_m
std::function<
void(std::vector<std::tuple<std::shared_ptr<cs::CMJoin>, int, std::string>>&)> cb)
{
if (join_msgs.empty()) {
abort();
}
std::vector<std::tuple<std::shared_ptr<cs::CMJoin>, int, std::string>> result;
bool is_old_version = false;
for (auto& msg : join_msgs) {
if (msg->proto_version() < 2022032201) {
is_old_version = true;
break;
}
result.push_back(
std::make_tuple(msg, 0, "")
);
}
if (is_old_version) {
cb(result);
}
}

View File

@ -50,7 +50,7 @@ package cs;
//
enum Constant_e
{
ProtoVersion = 2021073001; //
ProtoVersion = 2022032201; //
}
//