update
This commit is contained in:
parent
5bf499430c
commit
b2386a3a3e
@ -548,12 +548,12 @@ func (this *MapData) DropGirde() bool {
|
||||
}
|
||||
}
|
||||
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))))
|
||||
mp[fill[n1.Int64()]] = struct{}{}
|
||||
if len(mp) >= 2 {
|
||||
break
|
||||
}
|
||||
|
||||
}
|
||||
if this.iType == 3 {
|
||||
sp = 4
|
||||
|
Loading…
Reference in New Issue
Block a user