]> git.lizzy.rs Git - minetest.git/blobdiff - src/utility.cpp
Fixed a temporary solution of server shutting down to an assert(0) when a too large...
[minetest.git] / src / utility.cpp
index ed0c179e8fc634d485380fe8983d466a6f22dfbd..95c5d8bf572a75707cab022fa52de65a5e48a657 100644 (file)
@@ -22,7 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 */
 
 #include "utility.h"
-#include "irrlichtwrapper.h"
 #include "gettime.h"
 
 TimeTaker::TimeTaker(const char *name, u32 *result)
@@ -61,6 +60,17 @@ u32 TimeTaker::getTime()
        return dtime;
 }
 
+const v3s16 g_6dirs[6] =
+{
+       // +right, +top, +back
+       v3s16( 0, 0, 1), // back
+       v3s16( 0, 1, 0), // top
+       v3s16( 1, 0, 0), // right
+       v3s16( 0, 0,-1), // front
+       v3s16( 0,-1, 0), // bottom
+       v3s16(-1, 0, 0) // left
+};
+
 const v3s16 g_26dirs[26] =
 {
        // +right, +top, +back