This commit is contained in:
aozhiwei 2023-05-24 18:03:28 +08:00
parent adf5ff8bc6
commit 6e5f6eff1d

View File

@ -84,6 +84,9 @@ void Incubator::AllocAndroid(Human* target, int num, std::vector<Human*>* androi
target->room->IsForceOver()) {
return;
}
if (room->GetFrameNo() < wait_alloc_time_ * SERVER_FRAME_RATE) {
return;
}
int try_count = 0;
glm::vec3 dir = GlmHelper::UP;
while (num > 0 && try_count < 8 && !hold_humans_.empty()) {