Multiplayer: Send an error message when connecting to a full room

This commit is contained in:
James Rowe 2018-04-20 01:34:37 -06:00 committed by zhupengfei
parent a9c9ffd32c
commit e040bc9355
No known key found for this signature in database
GPG key ID: DD129E108BD09378
7 changed files with 42 additions and 7 deletions

View file

@ -154,6 +154,9 @@ void RoomMember::RoomMemberImpl::MemberLoop() {
HandleJoinPacket(&event); // Get the MAC Address for the client
SetState(State::Joined);
break;
case IdRoomIsFull:
SetState(State::RoomIsFull);
break;
case IdNameCollision:
SetState(State::NameCollision);
break;