发牌调控还原 使用之前的发牌模式
This commit is contained in:
parent
ce1e3d4474
commit
9196e235d8
|
@ -561,8 +561,7 @@ func (this *TienLenSceneData) GetFreeGameSceneType() int32 {
|
|||
// 比赛场发牌
|
||||
// 纯真人,随机发牌
|
||||
// 有机器人和真人,真人拿好牌
|
||||
// mustRandom 必须随机发牌
|
||||
func (this *TienLenSceneData) SendHandCard_Match(mustRandom bool) {
|
||||
func (this *TienLenSceneData) SendHandCard_Match() {
|
||||
this.poker.Shuffle()
|
||||
buf := this.poker.GetPokerBuf()
|
||||
cardss := map[int][]int32{}
|
||||
|
@ -584,7 +583,7 @@ func (this *TienLenSceneData) SendHandCard_Match(mustRandom bool) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if !mustRandom && len(realPlayers) > 0 && len(robotPlayers) > 0 {
|
||||
if len(realPlayers) > 0 && len(robotPlayers) > 0 {
|
||||
type gradeInfo struct {
|
||||
id int
|
||||
grade int
|
||||
|
|
|
@ -993,18 +993,14 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
|
|||
} else {
|
||||
if len(sceneEx.testPokers) > 1 {
|
||||
sceneEx.SendHandCardOdds()
|
||||
} else {
|
||||
if sceneEx.WGCreateScene.GetCloseCtrl() {
|
||||
sceneEx.SendHandCard_Match(true)
|
||||
} else {
|
||||
if sceneEx.IsMatchScene() || sceneEx.IsCustom() {
|
||||
sceneEx.SendHandCard_Match(false)
|
||||
sceneEx.SendHandCard_Match()
|
||||
} else {
|
||||
sceneEx.SendHandCardOdds()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for _, seat := range sceneEx.seats {
|
||||
if seat != nil {
|
||||
|
|
Loading…
Reference in New Issue