This commit is contained in:
aozhiwei 2024-02-04 13:12:25 +08:00
parent 2136fdb18d
commit 8deb24c276
2 changed files with 5 additions and 3 deletions

View File

@ -66,7 +66,7 @@ void CustomBattle::ParseResult(a8::XObject& obj)
auto member = std::make_shared<CustomMember>();
member->team_ = team.get();
member->account_id_ = member_obj->Get("account_id").GetString();
#ifdef MYDEBUG1
#ifdef MYDEBUG
if (IsMoba()) {
member->account_id_ = member->account_id_ + "$$$$";
}
@ -83,7 +83,7 @@ void CustomBattle::ParseResult(a8::XObject& obj)
member_id_hash_[member->account_id_] = member;
team->member_hash_[member->account_id_] = member;
account_hash_[member->account_id_] = team;
#ifdef MYDEBUG1
#ifdef MYDEBUG
if (IsMoba()) {
auto member = std::make_shared<CustomMember>();
member->team_ = ob_team_.get();

View File

@ -412,7 +412,9 @@ void Room::AddPlayer(Player* hum, std::shared_ptr<BornPoint> init_born_point, bo
AddToMoveableHash(hum);
AddToAccountHash(hum);
AddToHumanHash(hum);
AddToAliveHumanHash(hum);
if (!hum->IsOb()) {
AddToAliveHumanHash(hum);
}
if (!no_matchteam) {
MatchTeam(hum);
}