From f66e1ea989bf64e9dbda39a02dce0ff8790ab883 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 May 2020 16:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=BF=E9=97=B4=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/room.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 40f3d1f..5bc690e 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -635,12 +635,12 @@ bool Room::CanJoin(const std::string& accountid, RoomType_e self_room_type) return false; } if (room_type == RT_NewBrid) { - if (GetPlayerNum() > 0) { + if (room_type != self_room_type || GetPlayerNum() > 0) { return false; } } if (room_type == RT_MidBrid) { - if (GetPlayerNum() > 4) { + if (room_type != self_room_type || GetPlayerNum() > 4) { return false; } }