From 226a5735bff4945c4aa4ffe182c69e277cbefad8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 22 Jun 2021 13:57:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A3=9E=E6=9C=BA=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/framemaker.cc | 1 + server/tools/protobuild/cs_proto.proto | 1 + 2 files changed, 2 insertions(+) diff --git a/server/gameserver/framemaker.cc b/server/gameserver/framemaker.cc index 78153af..f4c6289 100644 --- a/server/gameserver/framemaker.cc +++ b/server/gameserver/framemaker.cc @@ -18,6 +18,7 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(Human* hum) cs::MFPlane* p = msg->mutable_plane(); TypeConvert::ToPb(room->plane.start_point, p->mutable_start_point()); TypeConvert::ToPb(room->plane.end_point, p->mutable_end_point()); + TypeConvert::ToPb(room->plane.curr_pos, p->mutable_pos()); } for (auto& itr : hum->new_objects) { #ifdef DEBUG diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 54487b5..a6622fd 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -760,6 +760,7 @@ message MFPlane { optional MFVec2 start_point = 1; //飞机起点 optional MFVec2 end_point = 2; //飞机终点 + optional MFVec2 pos = 3; //飞机当前位置 } //载具信息(用于小地图显示)