mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Object selection: Improve distance checks (#12974)
This commit is contained in:
@@ -495,8 +495,7 @@ void ClientEnvironment::getSelectedActiveObjects(
|
||||
std::vector<PointedThing> &objects)
|
||||
{
|
||||
std::vector<DistanceSortedActiveObject> allObjects;
|
||||
getActiveObjects(shootline_on_map.start,
|
||||
shootline_on_map.getLength() + 10.0f, allObjects);
|
||||
m_ao_manager.getActiveSelectableObjects(shootline_on_map, allObjects);
|
||||
const v3f line_vector = shootline_on_map.getVector();
|
||||
|
||||
for (const auto &allObject : allObjects) {
|
||||
|
Reference in New Issue
Block a user