This commit is contained in:
aozhiwei 2024-09-14 14:05:37 +08:00
parent 7129bcb4be
commit 571fc0f58c

View File

@ -540,10 +540,14 @@ void Room::CreateAndroid(int robot_num, std::shared_ptr<Team> team)
hum->Initialize();
AddToEntityHash(hum);
AddToHumanHash(hum);
if (team) {
team->AddMember(hum);
} else {
if (GetMapModeMeta()->mapMode() != mt::kCircuitMatchMode) {
MatchTeam(hum);
} else {
if (team) {
team->AddMember(hum);
} else {
MatchTeam(hum);
}
}
if (!hum->IsOb()) {
IncAliveCount();