mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-07 13:02:27 +08:00
修复锚点无法传送
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user