Compare commits

..

No commits in common. "76d95282cac2b6cd4ff98f663ac143841405c757" and "49bd65a05c9adf4e63dd5b261a7b3ff096e9809c" have entirely different histories.

1 changed files with 3 additions and 6 deletions

View File

@ -532,7 +532,7 @@ func (this *Tournament) SignUp(tmId int32, p *Player) (bool, int32) {
if this.IsMatching(p.SnId) || isWaiting { if this.IsMatching(p.SnId) || isWaiting {
return false, int32(tournament.SignRaceCode_OPRC_Repeat) return false, int32(tournament.SignRaceCode_OPRC_Repeat)
} }
if this.GetMatchAwardNum(p.Platform, tmId) <= 0 { if this.GetMatchAwardNum(p.Platform, tmId) == 0 {
return false, int32(tournament.SignRaceCode_OPRC_NoAward) return false, int32(tournament.SignRaceCode_OPRC_NoAward)
} }
// 扣报名费 // 扣报名费
@ -1725,13 +1725,10 @@ func (this *Tournament) GetMatchAwardNum(platform string, id int32) int32 {
if matchInfo != nil { if matchInfo != nil {
for _, info := range matchInfo { for _, info := range matchInfo {
if info.Id == id { if info.Id == id {
if info.AwardNum == 9999 { if info.AwardNum == -1 {
return 9999 return -1
} else { } else {
num = info.AwardNum - num num = info.AwardNum - num
if num < 0 {
num = 0
}
} }
break break
} }