From f2ccf5f0555aa0a978b516a046365947660247b2 Mon Sep 17 00:00:00 2001 From: aceld Date: Fri, 31 May 2019 21:03:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=B0=83=E8=AF=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zinx_app_demo/mmo_game/api/move.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zinx_app_demo/mmo_game/api/move.go b/zinx_app_demo/mmo_game/api/move.go index 118b7fe..24c779d 100644 --- a/zinx_app_demo/mmo_game/api/move.go +++ b/zinx_app_demo/mmo_game/api/move.go @@ -14,7 +14,6 @@ type MoveApi struct { znet.BaseRouter } - func (*MoveApi) Handle(request ziface.IRequest) { //1. 将客户端传来的proto协议解码 msg := &pb.Position{} @@ -32,7 +31,7 @@ func (*MoveApi) Handle(request ziface.IRequest) { return } - fmt.Printf("user pid = %d , move(%f,%f,%f,%f)\n", pid, msg.X, msg.Y, msg.Z, msg.V) + //fmt.Printf("user pid = %d , move(%f,%f,%f,%f)\n", pid, msg.X, msg.Y, msg.Z, msg.V) //3. 根据pid得到player对象 player := core.WorldMgrObj.GetPlayerByPid(pid.(int32))