This commit is contained in:
aozhiwei 2022-08-19 16:56:40 +08:00
parent 3d26f1a64a
commit 7400dca15e
2 changed files with 4 additions and 1 deletions

View File

@ -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_team_id(team_id);
team_data->set_player_id(GetUniId()); team_data->set_player_id(GetUniId());
team_data->set_score(stats.pve_score);
if (is_game_over || !real_dead || room->GetFrameNo() - GetRealDeadFrameNo(room) < 4) { if (is_game_over || !real_dead || room->GetFrameNo() - GetRealDeadFrameNo(room) < 4) {
TypeConvert::ToPb(GetPos(), team_data->mutable_pos()); TypeConvert::ToPb(GetPos(), team_data->mutable_pos());
TypeConvert::ToPb(GetAttackDir(), team_data->mutable_dir()); TypeConvert::ToPb(GetAttackDir(), team_data->mutable_dir());
@ -1679,7 +1680,7 @@ void Human::SendUpdateMsg()
#ifdef DEBUG #ifdef DEBUG
end_tick1 = a8::XGetTickCount(); end_tick1 = a8::XGetTickCount();
if (end_tick1 - begin_tick1 > 100) { if (end_tick1 - begin_tick1 > 100) {
p A8_ABORT(); A8_ABORT();
} }
#endif #endif
framedata_.ClearFrameData(this); framedata_.ClearFrameData(this);

View File

@ -88,6 +88,8 @@ struct PlayerStats
int pass_score = 0; int pass_score = 0;
int rank_score = 0; int rank_score = 0;
int pve_score = 0;
std::vector<std::pair<int, int>> extra_drop; std::vector<std::pair<int, int>> extra_drop;
int killer_id = 0; int killer_id = 0;