mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Migrate to STL containers/algorithms.
This commit is contained in:
parent
e204bedf1d
commit
6a1670dbc3
63 changed files with 1330 additions and 1417 deletions
|
@ -532,10 +532,10 @@ int EnvRef::l_find_node_near(lua_State *L)
|
|||
}
|
||||
|
||||
for(int d=1; d<=radius; d++){
|
||||
core::list<v3s16> list;
|
||||
std::list<v3s16> list;
|
||||
getFacePositions(list, d);
|
||||
for(core::list<v3s16>::Iterator i = list.begin();
|
||||
i != list.end(); i++){
|
||||
for(std::list<v3s16>::iterator i = list.begin();
|
||||
i != list.end(); ++i){
|
||||
v3s16 p = pos + (*i);
|
||||
content_t c = env->getMap().getNodeNoEx(p).getContent();
|
||||
if(filter.count(c) != 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue