1
This commit is contained in:
parent
f0a1fd39d7
commit
e38c74ba76
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user