1
This commit is contained in:
parent
aee60ccd96
commit
76bcb51b66
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ package cs;
|
||||
//常量
|
||||
enum Constant_e
|
||||
{
|
||||
ProtoVersion = 2021073001; //系统版本
|
||||
ProtoVersion = 2022032201; //系统版本
|
||||
}
|
||||
|
||||
//心跳
|
||||
|
Loading…
x
Reference in New Issue
Block a user