|
@@ -38,8 +38,9 @@ func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
|
|
isFullPlayer, err_info := JoinRoom(roomList[0], matchInfo, userId)
|
|
isFullPlayer, err_info := JoinRoom(roomList[0], matchInfo, userId)
|
|
if err_info == nil {
|
|
if err_info == nil {
|
|
if isFullPlayer {
|
|
if isFullPlayer {
|
|
- fmt.Printf("匹配成功开始游戏!")
|
|
|
|
- NotifyRoomPlayerMatch(startGame(roomList[0]))
|
|
|
|
|
|
+ start_room := startGame(roomList[0])
|
|
|
|
+ fmt.Printf("%v:匹配成功开始游戏!", start_room)
|
|
|
|
+ NotifyRoomPlayerMatch(start_room)
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
sendMatchErrorMsg(user_agent, 101, "not find player")
|
|
sendMatchErrorMsg(user_agent, 101, "not find player")
|