]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/itemgroup.h
Fix some textures not being sent correctly to older clients
[dragonfireclient.git] / src / itemgroup.h
index f91ccc221e3eea497a1abf5ef57066844ade4ef5..fcf72064979bcc600b7254e13719c194c17bac72 100644 (file)
@@ -17,22 +17,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef ITEMGROUP_HEADER
-#define ITEMGROUP_HEADER
+#pragma once
 
 #include <string>
-#include "util/cpp11_container.h"
+#include <unordered_map>
 
-typedef UNORDERED_MAP<std::string, int> ItemGroupList;
+typedef std::unordered_map<std::string, int> ItemGroupList;
 
-static inline int itemgroup_get(const ItemGroupList &groups,
-               const std::string &name)
+static inline int itemgroup_get(const ItemGroupList &groups, const std::string &name)
 {
        ItemGroupList::const_iterator i = groups.find(name);
-       if(i == groups.end())
+       if (i == groups.end())
                return 0;
        return i->second;
 }
-
-#endif
-