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