diff --git a/server/gameserver/creature.cc b/server/gameserver/creature.cc index 837b9894..7605ed55 100644 --- a/server/gameserver/creature.cc +++ b/server/gameserver/creature.cc @@ -2915,7 +2915,7 @@ void Creature::ShortFindPath() #if 1 auto try_move = [this] (glm::vec3 start, glm::vec3 end, - bool& block, glm::vec3& new_point, float& distance) + glm::vec3& new_point, float& distance) -> bool { room->map_instance->Scale(start); room->map_instance->Scale(end); @@ -2924,8 +2924,9 @@ void Creature::ShortFindPath() bool hit_result = false; bool ret = room->map_instance->Raycast(start, end, hit_point, hit_result); if (ret) { + return true; } else { - block = true; + return false; } };