diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 149f329c..9957e405 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -697,6 +697,7 @@ void Human::FillMFTeamData(Human* hum, cs::MFTeamData* team_data, bool is_game_o team_data->set_team_id(team_id); team_data->set_player_id(GetUniId()); + team_data->set_player_id(meta->i->id()); team_data->set_score(stats.pve_score); if (is_game_over || !real_dead || room->GetFrameNo() - GetRealDeadFrameNo(room) < 4) { TypeConvert::ToPb(GetPos(), team_data->mutable_pos()); diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 8dc6ff98..ba75f70a 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -643,6 +643,7 @@ message MFTeamData optional string user_data = 60 [default = ""]; //用户自定义数据(只同步一次) optional int32 can_follow = 62 [default = 0]; //是否可跟随 optional int32 score = 63 [default = 0]; //pve模式积分 + optional int32 hero_id = 64 [default = 0]; //英雄id(只同步一次) //一下字段只在结算的时候该字段才有内容 optional string account_id = 10; //账号id