This commit is contained in:
aozhiwei 2021-09-30 09:00:44 +00:00
parent c83a969a84
commit 381bc1b3e1
2 changed files with 8 additions and 0 deletions

View File

@ -444,11 +444,13 @@ bool MatchTeam::CanCombine(MatchTeam* b)
#ifdef DEBUG
a8::XPrintf("CanCombine 21\n", {});
#endif
return false;
}
if (b->GetValidSocketNum() <= 0) {
#ifdef DEBUG
a8::XPrintf("CanCombine 22\n", {});
#endif
return false;
}
if (HasSameCurrMember(b)) {
#ifdef DEBUG

View File

@ -25,7 +25,13 @@ void PlayerMgr::_SS_WSP_SocketDisconnect(f8::MsgHdr& hdr, const ss::SS_WSP_Socke
RemovePlayerBySocket(hdr.socket_handle);
hum->room->OnPlayerOffline(hum);
}
#if DEBUG
a8::XPrintf("remove socket1 %d\n", {hdr.socket_handle});
#endif
if (MatchMgr::Instance()->GetMatchInfo(hdr.socket_handle)) {
#if DEBUG
a8::XPrintf("remove socket2 %d\n", {hdr.socket_handle});
#endif
MatchMgr::Instance()->RemoveSocket(hdr.socket_handle);
}
}