fix 十三张算分
This commit is contained in:
parent
91eea97695
commit
0f3508b2f8
|
|
@ -1257,7 +1257,7 @@ func (this *SceneEx) CountBilled() {
|
||||||
for _, v := range this.players {
|
for _, v := range this.players {
|
||||||
if v != nil && v.IsGameing() {
|
if v != nil && v.IsGameing() {
|
||||||
if v.totalScore > 0 {
|
if v.totalScore > 0 {
|
||||||
v.gainCoin = int64(float64(v.totalScore) * float64(totalLoseScore) / float64(totalWinScore))
|
v.gainCoin = int64(float64(v.totalScore*totalLoseScore) / float64(totalWinScore))
|
||||||
} else if v.totalScore < 0 {
|
} else if v.totalScore < 0 {
|
||||||
v.gainCoin = v.totalScore
|
v.gainCoin = v.totalScore
|
||||||
}
|
}
|
||||||
|
|
@ -1270,7 +1270,7 @@ func (this *SceneEx) CountBilled() {
|
||||||
if v.totalScore > 0 {
|
if v.totalScore > 0 {
|
||||||
v.gainCoin = v.totalScore
|
v.gainCoin = v.totalScore
|
||||||
} else if v.totalScore < 0 {
|
} else if v.totalScore < 0 {
|
||||||
v.gainCoin = int64(float64(v.totalScore) * float64(totalLoseScore) / float64(totalWinScore))
|
v.gainCoin = int64(float64(v.totalScore*totalWinScore) / float64(totalLoseScore))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue