This commit is contained in:
aozhiwei 2023-08-10 14:23:34 +08:00
parent e9a28bed5b
commit ec999f115a

View File

@ -231,11 +231,13 @@ void RoomMgr::_CMReconnect(f8::MsgHdr& hdr, const cs::CMReconnect& msg)
}); });
return; return;
} }
#if 0
if (room->GetRoomMode() != kPvpMode) { if (room->GetRoomMode() != kPvpMode) {
send_reconnect_failed(hdr.socket_handle, 1, send_reconnect_failed(hdr.socket_handle, 1,
TEXT("battle_server_reconnect_failreason_only_chiji", "只有吃鸡模式支持重连")); TEXT("battle_server_reconnect_failreason_only_chiji", "只有吃鸡模式支持重连"));
return; return;
} }
#endif
Player* hum = room->GetPlayerByAccountId(msg.account_id()); Player* hum = room->GetPlayerByAccountId(msg.account_id());
if (!hum) { if (!hum) {
send_reconnect_failed(hdr.socket_handle, 1, send_reconnect_failed(hdr.socket_handle, 1,