1
This commit is contained in:
parent
79e79634e0
commit
d860732a73
@ -10,6 +10,7 @@ class CustomMember
|
||||
bool IsJoined() { return joined_; }
|
||||
int GetJoinTime() { return join_time_; }
|
||||
const std::string& GetAccountId() { return account_id_; }
|
||||
const std::string& GetSessionId() { return session_id_; }
|
||||
std::shared_ptr<BattleDataContext>& GetNetData() { return battle_context_; };
|
||||
|
||||
private:
|
||||
|
@ -808,6 +808,11 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
|
||||
{
|
||||
msg->set_force_enter_newbie_room(false);
|
||||
msg->set_pve_instance_id(0);
|
||||
#ifdef DEBUG
|
||||
{
|
||||
std::string custom_data = "";
|
||||
}
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
#else
|
||||
if (msg->proto_version() < cs::ProtoVersion) {
|
||||
@ -905,6 +910,8 @@ void RoomMgr::_CMJoinCustomBattle(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
||||
hum->battle_uuid = member->GetNetData()->battle_uuid;
|
||||
hum->is_valid_battle = member->GetNetData()->is_valid_battle;
|
||||
hum->payload = member->GetNetData()->payload;
|
||||
msg.set_session_id(member->GetSessionId());
|
||||
msg.set_team_uuid(team->GetTeamUuid());
|
||||
PlayerMgr::Instance()->
|
||||
CreatePlayerByCMJoin(hum,
|
||||
ip_saddr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user