diff --git a/gamesrv/thirteen/scene.go b/gamesrv/thirteen/scene.go index 1d658f5..55d90e0 100644 --- a/gamesrv/thirteen/scene.go +++ b/gamesrv/thirteen/scene.go @@ -1257,7 +1257,7 @@ func (this *SceneEx) CountBilled() { for _, v := range this.players { if v != nil && v.IsGameing() { 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 { v.gainCoin = v.totalScore } @@ -1270,7 +1270,7 @@ func (this *SceneEx) CountBilled() { if v.totalScore > 0 { v.gainCoin = v.totalScore } else if v.totalScore < 0 { - v.gainCoin = int64(float64(v.totalScore) * float64(totalLoseScore) / float64(totalWinScore)) + v.gainCoin = int64(float64(v.totalScore*totalWinScore) / float64(totalLoseScore)) } } }