summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-04-16 14:11:46 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-04-16 18:37:29 +0200
commit0c634a97197d50f2ca58825f1b215d0407397ac6 (patch)
treee2fc66d28fdf255ac931c08d2ed17a5504cd5b53 /src/environment.h
parentd02300a749ee35ba195e4e50c6464832302a387b (diff)
downloadminetest-0c634a97197d50f2ca58825f1b215d0407397ac6.tar.gz
minetest-0c634a97197d50f2ca58825f1b215d0407397ac6.tar.bz2
minetest-0c634a97197d50f2ca58825f1b215d0407397ac6.zip
Use std::vector instead of std::set for Environment::getObjectsInsideRadius
We are only iterating sequentially, we don't need a set here Also use a vector reference instead of a copy
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h
index c9c374413..415a9ec31 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -305,7 +305,7 @@ public:
bool swapNode(v3s16 p, const MapNode &n);
// Find all active objects inside a radius around a point
- std::set<u16> getObjectsInsideRadius(v3f pos, float radius);
+ void getObjectsInsideRadius(std::vector<u16> &objects, v3f pos, float radius);
// Clear all objects, loading and going through every MapBlock
void clearAllObjects();