From b613262d289ec90ee40a9b195732f5aeaaaa400d Mon Sep 17 00:00:00 2001 From: UnKownOwO <80520429@qq.com> Date: Sat, 3 Dec 2022 19:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=9A=E7=82=B9=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BC=A0=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gs/game/route_manager.go | 2 ++ gs/game/user_ability.go | 3 ++- gs/game/user_map.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gs/game/route_manager.go b/gs/game/route_manager.go index d9d075be..97878266 100644 --- a/gs/game/route_manager.go +++ b/gs/game/route_manager.go @@ -38,6 +38,8 @@ func (r *RouteManager) doRoute(cmdId uint16, userId uint32, clientSeq uint32, pa player := r.gameManager.userManager.GetOnlineUser(userId) if player == nil { logger.LOG.Error("player is nil, uid: %v", userId) + // 临时为了调试便捷搞的重连 生产环境请务必去除 不然新用户会一直重连不能进入 + //r.gameManager.ReconnectPlayer(userId) return } player.ClientSeq = clientSeq diff --git a/gs/game/user_ability.go b/gs/game/user_ability.go index a9640b07..acadd252 100644 --- a/gs/game/user_ability.go +++ b/gs/game/user_ability.go @@ -2,12 +2,13 @@ package game import ( "hk4e/gs/model" + "hk4e/pkg/logger" "hk4e/protocol/proto" ) // HandleAbilityInvoke 处理能力调用 func (g *GameManager) HandleAbilityInvoke(player *model.Player, entry *proto.AbilityInvokeEntry) { - //logger.LOG.Debug("ability invoke handle, entry: %v", entry.ArgumentType) + logger.LOG.Debug("ability invoke handle, entry: %v", entry.ArgumentType) switch entry.ArgumentType { case proto.AbilityInvokeArgument_ABILITY_INVOKE_ARGUMENT_MIXIN_COST_STAMINA: diff --git a/gs/game/user_map.go b/gs/game/user_map.go index da0722d6..331577d1 100644 --- a/gs/game/user_map.go +++ b/gs/game/user_map.go @@ -28,7 +28,7 @@ func (g *GameManager) SceneTransToPointReq(player *model.Player, payloadMsg pb.M } // 传送玩家 - sceneId := uint32(transPointConfig.PointData.TranSceneId) + sceneId := req.SceneId transPos := transPointConfig.PointData.TranPos pos := &model.Vector{ X: transPos.X,