From 0f3508b2f80fd992eae6533122a9b0dd34f629bb Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 8 Jan 2025 18:30:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8D=81=E4=B8=89=E5=BC=A0=E7=AE=97?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/thirteen/scene.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) } } }