打印错误日志

This commit is contained in:
meixiongfeng 2023-11-30 18:46:49 +08:00
parent 6094c6ffed
commit 6b9e4c5b28

View File

@ -542,7 +542,6 @@ func (this *MapData) DropGirde() bool {
for m := j + add; m < Height; m++ { for m := j + add; m < Height; m++ {
k1 := i*Width + m k1 := i*Width + m
fill = append(fill, k1) fill = append(fill, k1)
//this.Plat[k1] = this.CreateGride(true)
} }
break break
} }
@ -587,7 +586,6 @@ func (this *MapData) DropGirde() bool {
for i := 0; i < ilen; i++ { for i := 0; i < ilen; i++ {
n1, _ := rand.Int(rand.Reader, big.NewInt(int64(len(fill)))) n1, _ := rand.Int(rand.Reader, big.NewInt(int64(len(fill))))
mp[fill[n1.Int64()]] = struct{}{} mp[fill[n1.Int64()]] = struct{}{}
} }
for key := range mp { for key := range mp {
@ -601,6 +599,8 @@ func (this *MapData) DropGirde() bool {
this.Plat[key].Cid = conf.Key this.Plat[key].Cid = conf.Key
this.Plat[key].Special = conf.Type this.Plat[key].Special = conf.Type
this.Plat[key].Score = conf.Score this.Plat[key].Score = conf.Score
} else { // 错误打印
this.module.Errorf("cond conf err :%v,color:%d", err, this.Plat[key].Color)
} }
} }
} }