1
This commit is contained in:
parent
5fedb01717
commit
b57cb6e429
@ -387,6 +387,9 @@ func (this *playerMgr) GetRecommendPlayers(excludeHums map[string]int32, outHums
|
||||
rnd := rand.Int() % len(this.recommendHumans)
|
||||
for i := rnd; i < len(this.recommendHumans); i++ {
|
||||
if _, ok := excludeHums[this.recommendHumans[i].accountId]; !ok{
|
||||
if len(outHums) > 5 {
|
||||
break
|
||||
}
|
||||
outHums[this.recommendHumans[i].accountId] = 1
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user