From d20ecfc25f3d12b2a466474158bf9f1c4a422190 Mon Sep 17 00:00:00 2001 From: flswld Date: Wed, 18 Oct 2023 23:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gs/game/game_world_scene.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gs/game/game_world_scene.go b/gs/game/game_world_scene.go index ef531aa5..babcb44e 100644 --- a/gs/game/game_world_scene.go +++ b/gs/game/game_world_scene.go @@ -99,16 +99,9 @@ func (s *Scene) CreateEntityAvatar(player *model.Player, avatarId uint32) uint32 id: entityId, scene: s, lifeState: avatar.LifeState, - pos: &model.Vector{ - X: player.Pos.X, - Y: player.Pos.Y, - Z: player.Pos.Z, - }, // 所有角色实体暂时公用玩家的位置信息 - rot: &model.Vector{ - X: player.Rot.X, - Y: player.Rot.Y, - Z: player.Rot.Z, - }, + // 所有角色实体暂时公用玩家的位置指针 + pos: player.Pos, + rot: player.Rot, moveState: uint16(proto.MotionState_MOTION_NONE), lastMoveSceneTimeMs: 0, lastMoveReliableSeq: 0,