From d88d719560dbf005b4d07453cd8c8f29215d0a77 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 8 Nov 2023 14:46:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E8=83=9C=E5=88=A9=E8=8E=B7?= =?UTF-8?q?=E5=BE=97=E7=A7=AF=E5=88=86=E5=90=8C=E6=AD=A5=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/room.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/entertainment/room.go b/modules/entertainment/room.go index d392c236a..737819f15 100644 --- a/modules/entertainment/room.go +++ b/modules/entertainment/room.go @@ -593,9 +593,9 @@ func (this *Room) GameOver() (errdata *pb.ErrorData) { for _, v := range res { if v.A == "attr" && v.T == "consumeexp" { if winner.Userinfo.Uid == this.player1.Userinfo.Uid { - this.player1.Score += v.N + this.player1.Consumeexp += v.N } else { - this.player2.Score += v.N + this.player2.Consumeexp += v.N } } }