diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 89abfa0..37097a5 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2448,6 +2448,7 @@ void Human::NotifyObservers(cs::SMUpdate* msg, cs::MFActivePlayerData* active_pl if (observer != this && !observer->follow_synced_active_player) { msg->set_active_player_id(GetUniId()); FillMFActivePlayerData(msg->mutable_active_player_data()); + msg->mutable_active_player_data()->set_name(GetName()); if (!refreshed_view) { std::set synced_objects; { diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 267e1d1..55fbf82 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -589,6 +589,7 @@ message MFActivePlayerData repeated MFSkill skill_list = 28; //技能列表 repeated MFAttrAddition attr_addition= 61; //属性加成 + optional string name = 62; //昵称,不为undefine的时候覆盖本地 optional float shoot_offset_x = 50 [default = 0]; //射击偏移量-x optional float shoot_offset_y = 51 [default = 0]; //射击偏移量-y