This commit is contained in:
aozhiwei 2022-10-27 11:54:21 +08:00
parent 2d9483fe47
commit 33d88ee967

View File

@ -19,12 +19,19 @@ void RawTeamMember::FillMFMatchTeamMember(cs::MFMatchTeamMember* p)
p->set_account_id(msg->account_id()); p->set_account_id(msg->account_id());
p->set_name(msg->name()); p->set_name(msg->name());
p->set_avatar_url(msg->avatar_url()); p->set_avatar_url(msg->avatar_url());
#if 1
{
p->set_hero_id(msg->hero_id());
*p->mutable_weapons() = msg->weapons();
}
#else
if (choose_hero_times <= 0) { if (choose_hero_times <= 0) {
p->set_hero_id(0); p->set_hero_id(0);
} else { } else {
p->set_hero_id(msg->hero_id()); p->set_hero_id(msg->hero_id());
*p->mutable_weapons() = msg->weapons(); *p->mutable_weapons() = msg->weapons();
} }
#endif
p->set_is_leader(is_leader); p->set_is_leader(is_leader);
p->set_state(state); p->set_state(state);
p->set_head_frame(msg->head_frame()); p->set_head_frame(msg->head_frame());