This commit is contained in:
aozhiwei 2023-12-28 16:10:32 +08:00
parent 3e7b9608f0
commit 4df601f35d

View File

@ -1175,6 +1175,9 @@ void RoomMgr::_CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg)
return; return;
} }
if (p->GetRoom()) { if (p->GetRoom()) {
if (p->GetRoom()->GetGasData().GetGasMode() != GasInactive) {
return;
}
auto hum = p->GetRoom()->GetPlayerByAccountId(join_msg->account_id()); auto hum = p->GetRoom()->GetPlayerByAccountId(join_msg->account_id());
if (hum) { if (hum) {
hum->ReJoin(ip_saddr, socket_handle, join_msg, p); hum->ReJoin(ip_saddr, socket_handle, join_msg, p);