]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/face_position_cache.h
Mgvalleys: Update settingtypes.txt
[dragonfireclient.git] / src / face_position_cache.h
index 5ea0d938b2e1c778cc0cc312942e830d825f83d5..36cb06484f1724d4706ccda8cd21b4145a111108 100644 (file)
@@ -17,15 +17,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef FACE_POSITION_CACHE_HEADER
-#define FACE_POSITION_CACHE_HEADER
+#pragma once
 
 #include "irr_v3d.h"
-#include "threading/mutex.h"
 
 #include <map>
 #include <vector>
 #include <unordered_map>
+#include <mutex>
 
 /*
  * This class permits caching getFacePosition call results.
@@ -38,7 +37,5 @@ class FacePositionCache {
 private:
        static const std::vector<v3s16> &generateFacePosition(u16 d);
        static std::unordered_map<u16, std::vector<v3s16>> cache;
-       static Mutex cache_mutex;
+       static std::mutex cache_mutex;
 };
-
-#endif