From 2633482fe2e5f760df62be8bcf9b2fc3cb667da2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 16 Apr 2019 12:01:06 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 1 + server/tools/protobuild/cs_proto.proto | 1 + 2 files changed, 2 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 0349b56..15c4ede 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -112,6 +112,7 @@ void Human::FillMFPlayerStats(cs::MFPlayerStats* stats_pb) void Human::FillMFTeamData(cs::MFTeamData* team_data) { team_data->set_player_id(entity_uniid); + team_data->set_name(name); pos.ToPB(team_data->mutable_pos()); attack_dir.ToPB(team_data->mutable_dir()); team_data->set_health(health); diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 96e1df1..59350df 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -413,6 +413,7 @@ message MFTeamData optional bool disconnected = 5; //是否短线 optional bool dead = 6; //是否死亡 optional bool downed = 7; //是否倒下 + optional string name = 8; //名字 } //同队队友数据