diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/directiontables.cpp | 11 | ||||
-rw-r--r-- | src/util/directiontables.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/util/directiontables.cpp b/src/util/directiontables.cpp index d6c154842..587b0caf7 100644 --- a/src/util/directiontables.cpp +++ b/src/util/directiontables.cpp @@ -30,6 +30,17 @@ const v3s16 g_6dirs[6] = v3s16(-1, 0, 0) // left }; +const v3s16 g_7dirs[7] = +{ + 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 + v3s16(0,0,0), // self +}; + const v3s16 g_26dirs[26] = { // +right, +top, +back diff --git a/src/util/directiontables.h b/src/util/directiontables.h index ab5b63217..8464453bc 100644 --- a/src/util/directiontables.h +++ b/src/util/directiontables.h @@ -24,6 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc., extern const v3s16 g_6dirs[6]; +extern const v3s16 g_7dirs[7]; + extern const v3s16 g_26dirs[26]; // 26th is (0,0,0) |