From a2a70a130bf836c4b00720cabb0ab9cf96bab257 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 12 Aug 2024 17:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=94=E8=B5=9B=E5=9C=BA=E6=8E=92=E5=90=8D?= =?UTF-8?q?=E4=B8=8D=E5=9C=A8=E6=9C=89=E5=B9=B6=E5=88=97=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/matchcontext.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/worldsrv/matchcontext.go b/worldsrv/matchcontext.go index 4c7b32d..30cfcc0 100644 --- a/worldsrv/matchcontext.go +++ b/worldsrv/matchcontext.go @@ -40,19 +40,19 @@ func (p MatchContextSlice) Sort(isFinals bool) { for i, mc := range p { mc.rank = int32(i + 1) } - if isFinals { - // 积分相同名次相同 - lastRank := int32(0) - lastGrade := int32(0) - for i := 0; i < len(p); i++ { - mc := p[i] - if i > 0 && mc.grade == lastGrade { - mc.rank = lastRank - } - lastRank = mc.rank - lastGrade = mc.grade - } - } + //if isFinals { + // // 积分相同名次相同 + // lastRank := int32(0) + // lastGrade := int32(0) + // for i := 0; i < len(p); i++ { + // mc := p[i] + // if i > 0 && mc.grade == lastGrade { + // mc.rank = lastRank + // } + // lastRank = mc.rank + // lastGrade = mc.grade + // } + //} } func NewMatchContext(p *Player, tm *TmMatch, grade, snid, lv, roleId, skinId int32, seq int) *PlayerMatchContext {