|
@@ -39,7 +39,7 @@ namespace ET.Server
|
|
|
|
|
|
PlayerRoomComponent playerRoomComponent = player.GetComponent<PlayerRoomComponent>();
|
|
|
|
|
|
-
|
|
|
+
|
|
|
if (playerRoomComponent != null && !playerRoomComponent.RoomId.Equals(request.RoomId))
|
|
|
{
|
|
|
response.Error = ErrorCode.ERR_OperationError;
|
|
@@ -59,10 +59,17 @@ namespace ET.Server
|
|
|
reply();
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
|
|
|
+
|
|
|
+ if (room.Players.Count >= room.MaxNum)
|
|
|
+ {
|
|
|
+ response.Error = ErrorCode.ERR_OperationError;
|
|
|
+ response.Message = "房间人数已满,不可进入...";
|
|
|
+ reply();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (room.State != 0)
|
|
|
{
|