From f552b264d903635f064590b2af2426a3be394f66 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 1 Sep 2022 14:39:13 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 73a8a8bb..3aa9e317 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -741,20 +741,8 @@ void RoomMgr::SendGetBattleData(int mode, result->push_back(context); if (msg->proto_version() < 2022032201) { is_old_version = true; - break; } } -#ifdef DEBUG - if (is_old_version) { - #if 0 - for (auto& ctx : result) { - ctx.is_valid_battle = 1; - } - #endif - cb(*result); - return; - } -#endif { std::string url; JsonDataMgr::Instance()->GetApiUrl(url);