This commit is contained in:
aozhiwei 2023-02-08 15:23:20 +08:00
parent b4ca1cc60e
commit da949c09be

View File

@ -2602,7 +2602,10 @@ void Creature::OnLand()
room->map_instance->PtInHouse(GetPos().ToGlmVec3(), center);
room->map_instance->Scale(center);
glm::vec3 point;
bool ok = room->map_instance->FindNearestPoint(center, 10, point);
bool ok = false;
for (int i = 0; i < 10; ++i) {
ok = room->map_instance->FindNearestPoint(center, 10 + 10 * i, point);
}
if (!ok) {
abort();
}