This commit is contained in:
aozhiwei 2023-04-21 11:34:36 +08:00
parent f0a1fd39d7
commit e38c74ba76

View File

@ -1067,8 +1067,18 @@ void Human::FillSMGameOver(cs::SMGameOver& msg)
void Human::SendNewBieEnd()
{
if (room->IsNewBieRoom()) {
cs::SMNewBieEnd notify_msg;
SendNotifyMsg(notify_msg);
cs::SMNewBieEnd msg;
GetTeam()->TraverseMembers
(
[this, &msg] (Human* hum)
{
auto p = msg.add_victory_team();
cs::MFObjectFull full_msg;
hum->FillMFObjectFull(this->room, this, &full_msg);
*p = full_msg.union_obj_1();
return true;
});
SendNotifyMsg(msg);
}
}