1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Update client::ActiveObjectMgr::getActiveSelectableObjects API

This commit is contained in:
numzero
2023-06-20 23:06:38 +03:00
committed by sfan5
parent aaae9d5a77
commit d7291e0600
3 changed files with 9 additions and 11 deletions

View File

@@ -495,8 +495,7 @@ void ClientEnvironment::getSelectedActiveObjects(
const core::line3d<f32> &shootline_on_map,
std::vector<PointedThing> &objects)
{
std::vector<DistanceSortedActiveObject> allObjects;
m_ao_manager.getActiveSelectableObjects(shootline_on_map, allObjects);
auto allObjects = m_ao_manager.getActiveSelectableObjects(shootline_on_map);
const v3f line_vector = shootline_on_map.getVector();
for (const auto &allObject : allObjects) {