From 0c634a97197d50f2ca58825f1b215d0407397ac6 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 16 Apr 2015 14:11:46 +0200 Subject: 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 --- src/environment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/environment.h') 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 getObjectsInsideRadius(v3f pos, float radius); + void getObjectsInsideRadius(std::vector &objects, v3f pos, float radius); // Clear all objects, loading and going through every MapBlock void clearAllObjects(); -- cgit v1.2.3