This commit is contained in:
meixiongfeng 2023-11-08 13:36:25 +08:00
parent 5bf499430c
commit b2386a3a3e

View File

@ -548,12 +548,12 @@ func (this *MapData) DropGirde() bool {
} }
} }
if len(mp) < 2 { if len(mp) < 2 {
for { ilen := 2 - len(mp)
mp = make(map[int]struct{}, ilen)
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{}{}
if len(mp) >= 2 {
break
}
} }
if this.iType == 3 { if this.iType == 3 {
sp = 4 sp = 4