比赛场房间排名

This commit is contained in:
sk 2024-08-27 17:36:08 +08:00
parent f782b799ab
commit 94a4737609
1 changed files with 19 additions and 0 deletions

View File

@ -966,6 +966,25 @@ func (this *Tournament) GetRank(sortId int64, snid int32) int32 {
}
if round <= 1 {
d := tm.TmPlayer[snid]
if d != nil {
return int32(d.seq)
}
if useRobot {
n := 0
for _, v := range tm.TmPlayer {
n = v.seq - 1
break
}
for k, v := range tm.robotGrades[0] {
if v.copySnid == snid {
if k < n {
return int32(k)
}
return int32(k + 2)
}
}
}
return 0
} else {
if useRobot {