xy 1 周之前
父节点
当前提交
e512fc566a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/server/game/ludo/match.go

+ 2 - 0
src/server/game/ludo/match.go

@@ -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])
 			}