Use std::vector instead of std::set for Environment::getObjectsInsideRadius
authorLoic Blot <loic.blot@unix-experience.fr>
Thu, 16 Apr 2015 12:11:46 +0000 (14:11 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Thu, 16 Apr 2015 16:37:29 +0000 (18:37 +0200)
commit0c634a97197d50f2ca58825f1b215d0407397ac6
treee2fc66d28fdf255ac931c08d2ed17a5504cd5b53
parentd02300a749ee35ba195e4e50c6464832302a387b
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/collision.cpp
src/environment.cpp
src/environment.h
src/script/lua_api/l_env.cpp