|
@@ -22,6 +22,7 @@ func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
|
|
|
if len(roomList) == 0 {
|
|
|
// Create new room if none available
|
|
|
room_info := CreateRoom(matchInfo, userId)
|
|
|
+ print("没找到房间匹配一个!")
|
|
|
if room_info == nil {
|
|
|
sendMatchErrorMsg(user_agent, 101, "not find player")
|
|
|
}
|
|
@@ -30,6 +31,7 @@ func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
|
|
|
isFullPlayer, err_info := JoinRoom(roomList[0], matchInfo, userId)
|
|
|
if err_info != nil {
|
|
|
if isFullPlayer {
|
|
|
+ print("匹配成功开始游戏!")
|
|
|
startGame(roomList[0])
|
|
|
NotifyRoomPlayerMatch(roomList[0])
|
|
|
}
|