]> git.lizzy.rs Git - minetest.git/blobdiff - src/clientobject.cpp
Particles: Do not add digging particles for airlike nodes (#6392)
[minetest.git] / src / clientobject.cpp
index 89a0474a40b1781dfd199e5f8efff8f7fbf1f2a7..f4b69201ba9ad6fc38240995d7e0d388fdcf951f 100644 (file)
@@ -42,8 +42,8 @@ ClientActiveObject* ClientActiveObject::create(ActiveObjectType type,
                Client *client, ClientEnvironment *env)
 {
        // Find factory function
-       UNORDERED_MAP<u16, Factory>::iterator n = m_types.find(type);
-       if(n == m_types.end()) {
+       auto n = m_types.find(type);
+       if (n == m_types.end()) {
                // If factory is not found, just return.
                warningstream << "ClientActiveObject: No factory for type="
                                << (int)type << std::endl;
@@ -57,8 +57,8 @@ ClientActiveObject* ClientActiveObject::create(ActiveObjectType type,
 
 void ClientActiveObject::registerType(u16 type, Factory f)
 {
-       UNORDERED_MAP<u16, Factory>::iterator n = m_types.find(type);
-       if(n != m_types.end())
+       auto n = m_types.find(type);
+       if (n != m_types.end())
                return;
        m_types[type] = f;
 }