diff --git a/server/gameserver/creature.cc b/server/gameserver/creature.cc index 658abe44..67b32790 100644 --- a/server/gameserver/creature.cc +++ b/server/gameserver/creature.cc @@ -2910,10 +2910,18 @@ void Creature::ShotFindPath() if (std::abs(GetMoveDir().x) > FLT_EPSILON || std::abs(GetMoveDir().z) > FLT_EPSILON ) { - #if 0 glm::vec3 new_move_dir = GetMoveDir(); GlmHelper::RotateY(new_move_dir, 90 / 180.0f); - room->map_instance->Raycast(); - #endif + { + glm::vec3 start; + glm::vec3 end; + glm::vec3 hit_point; + bool hit_result; + + room->map_instance->Scale(start); + room->map_instance->Scale(end); + + room->map_instance->Raycast(start, end, hit_point, hit_result); + } } }