This commit is contained in:
aozhiwei 2023-04-01 19:31:45 +08:00
parent 42803ff9b9
commit acb2ed251b

View File

@ -247,8 +247,11 @@ Human* Incubator::ActiveAndroid(Human* hum)
AllocAndroid(hum, 1, &androids); AllocAndroid(hum, 1, &androids);
if (!androids.empty()) { if (!androids.empty()) {
target = androids[0]; target = androids[0];
} else {
} }
#ifdef DEBUG #ifdef DEBUG
if (target) {
room->BroadcastDebugMsg(a8::Format("active android id:%d pos:%f,%f,%f", room->BroadcastDebugMsg(a8::Format("active android id:%d pos:%f,%f,%f",
{ {
target->GetUniId(), target->GetUniId(),
@ -256,6 +259,7 @@ Human* Incubator::ActiveAndroid(Human* hum)
target->GetPos().GetY(), target->GetPos().GetY(),
target->GetPos().GetZ(), target->GetPos().GetZ(),
})); }));
}
#endif #endif
return target; return target;
} }