【锦标赛】优化排行榜
This commit is contained in:
parent
56157dd32c
commit
f17e2948a3
@ -537,17 +537,17 @@ func (c *ChampshipMgr) inRank(m *msg.Msg) (interface{}, error) {
|
||||
}
|
||||
return false
|
||||
})
|
||||
ChampshipData.Rank[GroupId] = RankList
|
||||
|
||||
// 收集需要通知的玩家
|
||||
notifyList := make([]int, 0)
|
||||
for k, v := range RankList {
|
||||
if Notify[v.Uid] != k {
|
||||
if Notify[v.Uid] != k && v.Type != RANK_PLAYER_ROBOT {
|
||||
c.SetRankCache(v.Uid)
|
||||
notifyList = append(notifyList, v.Uid)
|
||||
}
|
||||
}
|
||||
|
||||
ChampshipData.Rank[GroupId] = RankList
|
||||
|
||||
// 在锁外通知玩家
|
||||
for _, uid := range notifyList {
|
||||
go NotifyPlayer(uid, &msg.Msg{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user