From eb83dd957adbd0d7dfd6e5b5bd60aedb999fee80 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 24 Oct 2023 10:30:21 +0800 Subject: [PATCH] =?UTF-8?q?4=E6=B6=88=E6=88=965=E6=B6=88=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E5=85=83=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/xxlPlat.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/entertainment/xxlPlat.go b/modules/entertainment/xxlPlat.go index 9f1af29bc..120687f82 100644 --- a/modules/entertainment/xxlPlat.go +++ b/modules/entertainment/xxlPlat.go @@ -133,7 +133,7 @@ func (this *MapData) Check5X(color int32) (bEliminate bool, score int32, count i } this.oid++ // 生成一个新的类型元素 - if conf, err := this.module.configure.GetGameBlock(k1, FiveType); err != nil { + if conf, err := this.module.configure.GetGameBlock(k1, FiveType); err == nil { this.Plat[k+2] = &pb.GirdeData{ Oid: this.oid, Color: k1, @@ -161,7 +161,7 @@ func (this *MapData) Check5X(color int32) (bEliminate bool, score int32, count i } this.oid++ // 生成一个新的类型元素 - if conf, err := this.module.configure.GetGameBlock(k1, FiveType); err != nil { + if conf, err := this.module.configure.GetGameBlock(k1, FiveType); err == nil { this.Plat[k+2*Width] = &pb.GirdeData{ Oid: this.oid, Color: k1, @@ -257,7 +257,7 @@ func (this *MapData) Check4X(color int32) (bEliminate bool, score int32, count i this.oid++ // 生成一个新的类型元素 - if conf, err := this.module.configure.GetGameBlock(k1, FourUType); err != nil { // 上下类型 + if conf, err := this.module.configure.GetGameBlock(k1, FourUType); err == nil { // 上下类型 this.Plat[newElem] = &pb.GirdeData{ Oid: this.oid, Color: k1, @@ -304,7 +304,7 @@ func (this *MapData) Check4X(color int32) (bEliminate bool, score int32, count i this.oid++ // 生成一个新的类型元素 - if conf, err := this.module.configure.GetGameBlock(k1, FourLType); err != nil { // 左右类型 + if conf, err := this.module.configure.GetGameBlock(k1, FourLType); err == nil { // 左右类型 this.Plat[newElem] = &pb.GirdeData{ Oid: this.oid, Color: k1,