1
This commit is contained in:
parent
c83a969a84
commit
381bc1b3e1
@ -444,11 +444,13 @@ bool MatchTeam::CanCombine(MatchTeam* b)
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
a8::XPrintf("CanCombine 21\n", {});
|
a8::XPrintf("CanCombine 21\n", {});
|
||||||
#endif
|
#endif
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (b->GetValidSocketNum() <= 0) {
|
if (b->GetValidSocketNum() <= 0) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
a8::XPrintf("CanCombine 22\n", {});
|
a8::XPrintf("CanCombine 22\n", {});
|
||||||
#endif
|
#endif
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (HasSameCurrMember(b)) {
|
if (HasSameCurrMember(b)) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -25,7 +25,13 @@ void PlayerMgr::_SS_WSP_SocketDisconnect(f8::MsgHdr& hdr, const ss::SS_WSP_Socke
|
|||||||
RemovePlayerBySocket(hdr.socket_handle);
|
RemovePlayerBySocket(hdr.socket_handle);
|
||||||
hum->room->OnPlayerOffline(hum);
|
hum->room->OnPlayerOffline(hum);
|
||||||
}
|
}
|
||||||
|
#if DEBUG
|
||||||
|
a8::XPrintf("remove socket1 %d\n", {hdr.socket_handle});
|
||||||
|
#endif
|
||||||
if (MatchMgr::Instance()->GetMatchInfo(hdr.socket_handle)) {
|
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);
|
MatchMgr::Instance()->RemoveSocket(hdr.socket_handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user