X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Futil%2Fdirectiontables.cpp;h=296585f9098b62018b9e74630621637f56d38d2f;hb=a93712458b2f8914fdb43ec436c5caf908ba93b8;hp=a5d2faa7c8d268efdd723f6ae230796a16f2e919;hpb=1bc37d576ce790c1169c5f9996be7bbc8026db2c;p=minetest.git diff --git a/src/util/directiontables.cpp b/src/util/directiontables.cpp index a5d2faa7c..296585f90 100644 --- a/src/util/directiontables.cpp +++ b/src/util/directiontables.cpp @@ -1,6 +1,6 @@ /* -Minetest-c55 -Copyright (C) 2010-2012 celeron55, Perttu Ahola +Minetest +Copyright (C) 2010-2013 celeron55, Perttu Ahola This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -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 @@ -99,3 +110,11 @@ const v3s16 g_27dirs[27] = v3s16(0,0,0), }; +const u8 wallmounted_to_facedir[6] = { + 20, + 0, + 16 + 1, + 12 + 3, + 8, + 4 + 2 +};