Browse Source

修正调试信息不对其

master
aceld 6 years ago
parent
commit
966f1f876a
  1. 2
      zinx_app_demo/mmo_game/api/move.go

2
zinx_app_demo/mmo_game/api/move.go

@ -32,7 +32,7 @@ func (*MoveApi) Handle(request ziface.IRequest) {
return
}
fmt.Printf("user pid = %d , move(%f,%f,%f,%f)", 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))

Loading…
Cancel
Save