1
This commit is contained in:
parent
42803ff9b9
commit
acb2ed251b
@ -247,15 +247,19 @@ 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
|
||||||
room->BroadcastDebugMsg(a8::Format("active android id:%d pos:%f,%f,%f",
|
if (target) {
|
||||||
{
|
room->BroadcastDebugMsg(a8::Format("active android id:%d pos:%f,%f,%f",
|
||||||
target->GetUniId(),
|
{
|
||||||
target->GetPos().GetX(),
|
target->GetUniId(),
|
||||||
target->GetPos().GetY(),
|
target->GetPos().GetX(),
|
||||||
target->GetPos().GetZ(),
|
target->GetPos().GetY(),
|
||||||
}));
|
target->GetPos().GetZ(),
|
||||||
|
}));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user