This commit is contained in:
aozhiwei 2023-09-20 14:02:22 +08:00
parent 1986eda46a
commit b49c99f768

View File

@ -18,6 +18,7 @@
#include "httpproxy.h"
#include "mapmgr.h"
#include "debugcmd.h"
#include "custom_battle.h"
#include "mt/Param.h"
#include "mt/Text.h"
@ -920,8 +921,9 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
{
rsp_obj->ToJsonStr()
});
#if 0
auto custom_battle = std::make_shared<CustomBattle>();
if (rsp_obj->GetType() == a8::XOT_OBJECT) {
#if 0
int match_mode = rsp_obj->Get("match_mode");
RoomMgr::Instance()->SetMatchMode(match_mode ? 1 : 0);
if (rsp_obj->HasKey("members")) {
@ -936,9 +938,9 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
}
}
}
}
cb(*result);
#endif
}
cb(0, "", custom_battle);
} else {
f8::UdpLog::Instance()->Warning
("GetCustomBattleData error %s",