diff --git a/src/nodedef.cpp b/src/nodedef.cpp index bdaf0ebed..303061e3c 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -1736,18 +1736,41 @@ bool NodeDefManager::nodeboxConnects(MapNode from, MapNode to, f2.param_type_2 == CPT2_4DIR || f2.param_type_2 == CPT2_COLORED_4DIR) && (connect_face >= 4)) { - static const u8 rot[33 * 4] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 4, 32, 16, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, // 4 - back - 8, 4, 32, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, // 8 - right - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 8, 4, 32, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, // 16 - front - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 32, 16, 8, 4 // 32 - left - }; + static const u8 rot[33 * 4] = { + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 4, 32, 16, 8, // 4 - back + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 8, 4, 32, 16, // 8 - right + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 16, 8, 4, 32, // 16 - front + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 32, 16, 8, 4 // 32 - left + }; if (f2.param_type_2 == CPT2_FACEDIR || f2.param_type_2 == CPT2_COLORED_FACEDIR) { return (f2.connect_sides