1
This commit is contained in:
parent
b4ca1cc60e
commit
da949c09be
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user