锦标赛优化,修改排行榜排序

This commit is contained in:
hahwu 2026-04-09 15:06:38 +08:00
parent a0baaa99df
commit ea0c5681fb

View File

@ -125,9 +125,19 @@ func (c *ChampshipMgr) version() {
c.data.(*ChampshipData).Version = 1
for _, v := range c.data.(*ChampshipData).Rank {
sortChampionshipRank(v)
for _, info := range v {
if info.Type != RANK_PLAYER_ROBOT {
c.SetRankCache(info.Uid)
}
}
}
for _, v := range c.data.(*ChampshipData).PreRank {
sortChampionshipRank(v)
for _, info := range v {
if info.Type != RANK_PLAYER_ROBOT {
c.SetRankCache(info.Uid)
}
}
}
}
}