1
This commit is contained in:
parent
94d816f70e
commit
8d99bb66f4
@ -1465,7 +1465,7 @@ void Player::PushJoinRoomMsg()
|
||||
notifymsg.set_side(side);
|
||||
GGListener::Instance()->SendToClient(socket_handle, 0, notifymsg);
|
||||
#ifdef DEBUG
|
||||
a8::XPrintf("PushJoinRooMmsg %d\n", {GetUniId()});
|
||||
a8::XPrintf("PushJoinRooMmsg %d side:%d\n", {GetUniId(), side});
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -345,6 +345,9 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
|
||||
if (!no_matchteam) {
|
||||
MatchTeam(hum);
|
||||
}
|
||||
#ifdef DEBUG
|
||||
hum->side = a8::RandEx(1, 2);
|
||||
#endif
|
||||
hum->PushJoinRoomMsg();
|
||||
++alive_count_;
|
||||
alive_count_chged_frameno_ = GetFrameNo();
|
||||
@ -375,7 +378,6 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
|
||||
if (humans.size() != 7) {
|
||||
abort();
|
||||
}
|
||||
hum->side = a8::RandEx(1, 2);
|
||||
Human* leader = hum;
|
||||
moba_team_a_ = leader->GetTeam();
|
||||
leader->born_point->wo_meta = std::get<0>(GetMapMeta()->moba_born_points.at(leader->side - 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user