This commit is contained in:
aozhiwei 2023-05-26 13:24:08 +08:00
parent c4463d8614
commit e47e4a2462

View File

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