From 71f6b0246b7fbbde1c6a2b78b332ea61a90cbd81 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 11 Nov 2024 11:37:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E6=8A=80=E9=A6=86=E5=BC=95=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_player.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldsrv/action_player.go b/worldsrv/action_player.go index d085644..13a91b3 100644 --- a/worldsrv/action_player.go +++ b/worldsrv/action_player.go @@ -3251,7 +3251,7 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in send() return nil } - if msg.GuideId == 1 { + if msg.GuideId == common.GuideIdNewPlayer { if p.GuideStep >= 0 && p.GuideStep < model.GameParamData.GuideStepMaxNum { p.GuideStep = -1 // 跳过引导为 -1 pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess @@ -3269,6 +3269,7 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in return nil } p.GuideStep = int32(msg.GetParam()[0]) + p.GuideData[msg.GetGuideId()] = int32(msg.GetParam()[0]) pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess send() return nil