This commit is contained in:
aozhiwei 2024-04-17 19:37:29 +08:00
parent c3d990c5c0
commit ccdcc3564f

View File

@ -3422,9 +3422,8 @@ void Room::CreateWorldObjects()
}
}
}
if (born_point_hash_.size() < 10) {
#if 1
while (born_point_hash_.size() < 10) {
if (born_point_hash_.size() < GetRoomMaxPlayerNum() / 4) {
while (born_point_hash_.size() < GetRoomMaxPlayerNum() / 4) {
int uniid = AllocUniid();
std::shared_ptr<BornPoint> born_point = std::make_shared<BornPoint>();
std::shared_ptr<mt::WorldObject> wo_meta = std::make_shared<mt::WorldObject>();
@ -3434,9 +3433,6 @@ void Room::CreateWorldObjects()
born_point->wo_meta = wo_meta;
born_point_hash_[uniid] = born_point;
}
#else
abort();
#endif
}
}