Browse Source

Merge branch 'master' of http://120.76.130.29:3000/xx/ludo_server

Gogs 1 day ago
parent
commit
0d7d9d4a03
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/server/game/ludo/match.go

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

@@ -19,6 +19,8 @@ func RecvMatchLudo(args []interface{}) {
 	//判断玩家是否有足够金币
 	coin := ud.(*msg.UserInfo).MCoin
 	matchConfig := gameRule.getMatchByLevle(m.RoomLevel)
+	fmt.Print("coin = %d \n", coin)
+	fmt.Print("matchConfig.enterNum = %d \n", matchConfig.enterNum)
 	if coin >= matchConfig.enterNum {
 		user.DecreaseUserCoin(matchConfig.enterNum, user_id)
 		go matchRoom(m, user_id, a)